示例#1
0
        public async Task <IActionResult> Edit([FromRoute] Guid id, [FromBody] PatientRequest request)
        {
            try
            {
                var patient = await patientService.EditAsync(id, request);

                return(Ok(patient));
            }
            catch (Exception e)
            {
                return(BadRequest(e.Message));
            }
        }