public async Task <GetPermissionListResultDto> GetPermissionsAsync(Guid id)
        {
            var user = await _userManager.GetByIdAsync(id);

            var result = await _permissionAppServiceHelper.GetAsync(UserPermissionValueProvider.ProviderName, id.ToString());

            result.EntityDisplayName = user.UserName;
            return(result);
        }
Пример #2
0
        public async Task <GetPermissionListResultDto> GetPermissionsAsync(Guid id)
        {
            var role = await _roleRepository.GetAsync(id);

            return(await _permissionAppServiceHelper.GetAsync(RolePermissionValueProvider.ProviderName, role.Name)); //TODO: User normalized role name instad of name?
        }
 public async Task <GetPermissionListResultDto> GetPermissionsAsync(Guid id)
 {
     return(await _permissionAppServiceHelper.GetAsync(UserPermissionValueProvider.ProviderName, id.ToString()));
 }