public virtual async Task UpdateAsync(string providerName, string providerKey, UpdatePermissionsDto input) { switch (providerName) { case UserPermissionValueProvider.ProviderName: await _userAppService.UpdatePermissionsAsync(Guid.Parse(providerKey), input); break; case RolePermissionValueProvider.ProviderName: await _roleAppService.UpdatePermissionsAsync(Guid.Parse(providerKey), input); break; default: throw new NotImplementedException(); } }
public virtual Task UpdatePermissionsAsync(Guid id, UpdatePermissionsDto input) { return(_roleAppService.UpdatePermissionsAsync(id, input)); }