Exemplo n.º 1
0
        public IHttpActionResult PostPatient([FromBody] PatientEditDto patientEdit)
        {
            var patient = _registrationService.AddPatient(patientEdit);

            return(Created("", patient));
        }
Exemplo n.º 2
0
        public IHttpActionResult PutPatient(string id, [FromBody] PatientEditDto patientEdit)
        {
            var patient = _registrationService.UpdatePatient(patientEdit);

            return(Ok(patient));
        }