public ActionResult <Patient> EditPatient(int id, [FromBody] Patient patient) { Patient old = patientService.GetPatient(id); if (old == null) { return(NotFound()); } Patient result = patientService.EditPatient(old, patient); return(Ok(result)); }
public User EditProfile(User user) { return(patientService.EditPatient((Patient)user)); }
public void EditPatient(PatientModel patientForEdit) { patientService.EditPatient(patientForEdit); }
public ActionResult Post(PatientModel model) { _patientService.EditPatient(model); return(Ok()); }