Пример #1
0
        public override async Task <PagedResultDto <EditionDto> > GetListAsync(GetEditionInput input)
        {
            var count = await EditionRepository.GetCountAsync(input.Filter);

            var list = await EditionRepository.GetListAsync(input.Sorting, input.MaxResultCount, input.SkipCount, input.Filter);

            return(new PagedResultDto <EditionDto>(
                       count,
                       ObjectMapper.Map <List <Edition>, List <EditionDto> >(list)));
        }