public IHttpActionResult AddUserOrganization(Guid userId, [FromBody] Guid organizationId) { if (userId == Guid.Empty) { throw new ArgumentException("userId must be defined."); } if (organizationId == Guid.Empty) { throw new ArgumentNullException("organizationId"); } identityManagementService.AddUserOrganization(userId, organizationId); return(Ok()); }