public async Task <PagedResultDto <EditionDto> > GetListAsync(GetEditionsInput 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)
                       ));
        }
Ejemplo n.º 2
0
 public virtual Task <PagedResultDto <EditionDto> > GetListAsync(GetEditionsInput input)
 {
     return(EditionAppService.GetListAsync(input));
 }