예제 #1
0
        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);
        }
예제 #2
0
        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);
        }