Beispiel #1
0
    public virtual async Task <PagedResultDto <PageDto> > GetListAsync(GetPagesInputDto input)
    {
        var count = await PageRepository.GetCountAsync(input.Filter);

        var pages = await PageRepository.GetListAsync(
            input.Filter,
            input.MaxResultCount,
            input.SkipCount,
            input.Sorting
            );

        return(new PagedResultDto <PageDto>(
                   count,
                   ObjectMapper.Map <List <Page>, List <PageDto> >(pages)
                   ));
    }