public virtual async Task <PagedResultDto <LayoutDto> > GetListAsync(GetLayoutListInput input)
        {
            var count = await LayoutRepository.GetCountAsync(input.PlatformType, input.Filter);

            var layouts = await LayoutRepository.GetPagedListAsync(
                input.PlatformType, input.Filter,
                input.Sorting, input.Reverse, false,
                input.SkipCount, input.MaxResultCount);

            return(new PagedResultDto <LayoutDto>(count,
                                                  ObjectMapper.Map <List <Layout>, List <LayoutDto> >(layouts)));
        }
Ejemplo n.º 2
0
 public virtual async Task <PagedResultDto <LayoutDto> > GetListAsync(GetLayoutListInput input)
 {
     return(await LayoutAppService.GetListAsync(input));
 }