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));
        }
示例#2
0
 public User EditProfile(User user)
 {
     return(patientService.EditPatient((Patient)user));
 }
示例#3
0
 public void EditPatient(PatientModel patientForEdit)
 {
     patientService.EditPatient(patientForEdit);
 }
 public ActionResult Post(PatientModel model)
 {
     _patientService.EditPatient(model);
     return(Ok());
 }