public IHttpActionResult PostPatient([FromBody] PatientEditDto patientEdit) { var patient = _registrationService.AddPatient(patientEdit); return(Created("", patient)); }
public IHttpActionResult PutPatient(string id, [FromBody] PatientEditDto patientEdit) { var patient = _registrationService.UpdatePatient(patientEdit); return(Ok(patient)); }