public static PaggingResult <T> Create(IList <T> _data, PageResult page, SummaryResult summary) { var bo = new PaggingResult <T>(_data); bo.Paging = page; bo.Summary = summary; return(bo); }
public static PaggingResult <T> Mapper <U>(IList <U> _data, PageResult page, SummaryResult summary) { var bo = new PaggingResult <T>(); bo.Paging = page; bo.Summary = summary; InitializeMapper <T>(); AutoMapper.Mapper.Map(_data, bo.Data); return(bo); }