public virtual async Task <PagedResultDto <IdentityRoleDto> > GetRolesAsync(OrganizationUnitGetRoleByPagedDto input) { var origanizationUnit = await OrganizationUnitRepository.GetAsync(input.Id); var origanizationUnitRoleCount = await OrganizationUnitRepository.GetRolesCountAsync(origanizationUnit); var origanizationUnitRoles = await OrganizationUnitRepository.GetRolesAsync(origanizationUnit, input.Sorting, input.MaxResultCount, input.SkipCount, false); return(new PagedResultDto <IdentityRoleDto>(origanizationUnitRoleCount, ObjectMapper.Map <List <IdentityRole>, List <IdentityRoleDto> >(origanizationUnitRoles))); }
public virtual async Task <PagedResultDto <IdentityRoleDto> > GetRolesAsync(OrganizationUnitGetRoleByPagedDto input) { return(await OrganizationUnitAppService.GetRolesAsync(input)); }