GiveCampUK/GiveCRM — pull request #28 by alastairs (2011-11-04 02:32:22+00:00)
Title: Member search paging

Page the list of Member search results. Display the full list of Members by default (also paged).

Adds two new packages: PagedList and PagedList.Mvc. The custom class PagedMemberListViewModel is a Decorator to add a PagingFunction property to IPagedList; this was added to allow custom paging functions to be defined for the full list of Members and the filtered list (i.e., list of search results). In the end, both views use the same paging function, but I've left the Decorator in because it allows the declaration of the paging function to go in the controller rather than cluttering up the View.