public IActionResult DeletePatientHeight([FromBody] EditPatientHeightViewModel model) { if (ModelState.IsValid) { var patientHeight = Mapper.Map <EditPatientHeightViewModel, PatientHeight>(model); _patientHeightService.DeletePatientHeight(patientHeight); } return(new HttpStatusCodeResult(200)); }
public IActionResult EditPatientHeight([FromBody] EditPatientHeightViewModel model) { if (ModelState.IsValid) { var patientHeight = Mapper.Map <EditPatientHeightViewModel, PatientHeight>(model); patientHeight.LastModifiedDateUtc = System.DateTime.UtcNow; patientHeight.LastModifiedBy = 1; _patientHeightService.EditPatientHeight(patientHeight); } return(new HttpStatusCodeResult(200)); }