Пример #1
0
 public IActionResult Post(string userName, [FromBody] Organization newOrganization)
 {
     if (!ModelState.IsValid)
     {
         return(BadRequest(this.ModelState));
     }
     if (newOrganization.OrgName == "")
     {
         return(NotFound());
     }
     else
     {
         _organizationsService.AddNewOrganization(userName, newOrganization);
         return(Ok());
     }
 }