public IHttpActionResult CreateOrganization(NewOrganization organization) { if (organization == null) { throw new ArgumentNullException("organization"); } if (string.IsNullOrWhiteSpace(organization.Name)) { throw new ArgumentException("Organization name must be defined."); } Organization result = mapperFactory.CreateOrganizationMapper().Map(identityManagementService.CreateOrganization(organization.Name, organization.Description)); return(Ok(result)); }