Exemple #1
0
        public virtual async Task <GetPermissionListResultDto> GetAsync(string providerName, string providerKey)
        {
            switch (providerName)
            {
            case UserPermissionValueProvider.ProviderName:
                return(await _userAppService.GetPermissionsAsync(Guid.Parse(providerKey)));

            case RolePermissionValueProvider.ProviderName:
                return(await _roleAppService.GetPermissionsAsync(Guid.Parse(providerKey)));

            default:
                throw new NotImplementedException();
            }
        }
Exemple #2
0
 public virtual Task <GetPermissionListResultDto> GetPermissionsAsync(Guid id)
 {
     return(_roleAppService.GetPermissionsAsync(id));
 }