예제 #1
0
        public async Task <IActionResult> UpdatePatient([Required(ErrorMessage = "Patient Id is Required")] Guid id,
                                                        [Required] PatientRequest patientRequest)
        {
            var patientExists = await _patientService.CheckIfIdExists(id);

            var patientUri = new Uri($"v1/patients/{id}", UriKind.Relative);

            if (patientExists == false)
            {
                return(StatusCode(304));
            }
            await _patientService.UpdatePatient(id, patientRequest);

            return(Ok());
        }