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