Пример #1
0
        public PatientVO Update(PatientVO patient)
        {
            var patientEntity = _converter.Parse(patient);

            patientEntity = _repository.Update(patientEntity);
            return(_converter.Parse(patientEntity));
        }
Пример #2
0
 public IActionResult Put([FromBody] PatientVO patient)
 {
     if (patient == null)
     {
         return(BadRequest());
     }
     return(Ok(_patientBusiness.Update(patient)));
 }