public IHttpActionResult DeletePatient(int PatientID) { if (!ModelState.IsValid) { return(BadRequest("Not a valid model")); } if (!dao.DeleteBenhNhan(PatientID)) { return(BadRequest("Not a valid model")); } return(Ok()); }
public IHttpActionResult DeletePatient(int PatientID) { if (!ModelState.IsValid) { return(BadRequest("Not a valid model")); } if (!dao.DeleteBenhNhan(PatientID)) { return(BadRequest("Not a valid model")); } return(Ok()); }