Пример #1
0
        public virtual async Task <PagedResultDto <BlogDto> > GetListAsync(BlogGetListInput input)
        {
            var totalCount = await BlogRepository.GetCountAsync(input.Filter);

            var blogs = await BlogRepository.GetListAsync(
                input.Filter,
                input.Sorting,
                input.MaxResultCount,
                input.SkipCount);

            return(new PagedResultDto <BlogDto>(totalCount, ObjectMapper.Map <List <Blog>, List <BlogDto> >(blogs)));
        }
Пример #2
0
 public Task <PagedResultDto <BlogDto> > GetListAsync([FromQuery] BlogGetListInput input)
 {
     return(BlogAdminAppService.GetListAsync(input));
 }