public ActionResult Person([FromBody] Person personModel) { try { if (personModel == null) { return(BadRequest()); } _logic.Post(personModel); return(Ok()); } catch { return(StatusCode(500)); } }