Example #1
0
 public async Task <IActionResult> UpdatePatient([FromBody] PatientRequestDTO patientRequestDTO)
 {
     try
     {
         _patientAppService.AddOrUpdate(patientRequestDTO);
         return(StatusCode(200, true));
     }
     catch (Exception ex)
     {
         return(StatusCode(500, ex.StackTrace));
     }
 }
Example #2
0
        public void Remove(PatientRequestDTO entity)
        {
            var addCommand = _mapper.Map <Patient>(entity);

            _patientService.Remove(addCommand);
        }
Example #3
0
        public void AddOrUpdate(PatientRequestDTO entity)
        {
            var addCommand = _mapper.Map <Patient>(entity);

            _patientService.AddOrUpdate(addCommand);
        }