Métodos Frequentes
Métodos Frequentes
Métodos Frequentes
Métodos Frequentes
public void GrantPermission(int roleId, PermissionDto permission) { if (IsGranted(roleId, permission.Name)) { return; } if (permission.Default) { _rolePermissionRepository.RemovePermission(roleId, permission.Name, false); } else { _rolePermissionRepository.AddPermission(roleId, permission.Name, true); } }