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