public IActionResult Post([FromBody] Organization organization) { if (!ModelState.IsValid) { return(BadRequest(this.ModelState)); } if (organization.OrgName == "") { return(NotFound()); } else { var userName = User.Identity.Name; _organizationsService.UpdateOrganization(organization); return(Ok(organization)); } }