I created a little wrapper around AutoMapper to map PagedList
to PagedList
.
public class MappingService : IMappingService
{
public static Func
Usage:
PagedList pagedlist = repository.GetPagedList(page, pageSize);
mappingService.MapToViewModelPagedList(pagedList);
It is important that you would have to use the element types!
If you have any question or suggestions, please feel free to comment :)