public IHttpActionResult PostPatient([FromBody] Record bn) { if (!ModelState.IsValid) { return(BadRequest("Not a valid model")); } if (dao.PostRecord(bn) == false) { return(BadRequest("Not a valid model")); } return(Ok()); }