Beispiel #1
0
        public virtual async Task <PagedResultDto <OrganizationUnitDto> > GetListAsync(OrganizationUnitGetByPagedDto input)
        {
            var origanizationUnitCount = await OrganizationUnitRepository.GetCountAsync();

            var origanizationUnits = await OrganizationUnitRepository
                                     .GetListAsync(input.Sorting, input.MaxResultCount, input.SkipCount, false);

            return(new PagedResultDto <OrganizationUnitDto>(origanizationUnitCount,
                                                            ObjectMapper.Map <List <OrganizationUnit>, List <OrganizationUnitDto> >(origanizationUnits)));
        }