public IHttpActionResult AddRolePermission(Guid roleId, Guid permissionId) { if (roleId == Guid.Empty) { throw new ArgumentException("roleId must be defined."); } if (permissionId == Guid.Empty) { throw new ArgumentException("permissionId must be defined."); } identityManagementService.AddRolePermission(roleId, permissionId); return(Ok()); }