public virtual async Task <PagedResultDto <DataDto> > GetListAsync(GetDataListInput input) { var count = await DataRepository.GetCountAsync(input.Filter); var datas = await DataRepository.GetPagedListAsync( input.Filter, input.Sorting, false, input.SkipCount, input.MaxResultCount); return(new PagedResultDto <DataDto>(count, ObjectMapper.Map <List <Data>, List <DataDto> >(datas))); }
public virtual async Task <PagedResultDto <DataDto> > GetListAsync(GetDataListInput input) { return(await DataAppService.GetListAsync(input)); }