I\'d like to map a paged list of business objects to a paged list of view model objects using something like this:
var listViewModel = _mappingEngine.Map
If you're using Troy Goode's PageList, there's a StaticPagedList class that can help you map.
// get your original paged list
IPagedList pagedFoos = _repository.GetFoos(pageNumber, pageSize);
// map to IEnumerable
IEnumerable bars = Mapper.Map>(pagedFoos);
// create an instance of StaticPagedList with the mapped IEnumerable and original IPagedList metadata
IPagedList pagedBars = new StaticPagedList(bars, pagedFoos.GetMetaData());