コード例 #1
0
        public async Task <IHttpActionResult> EditPatient([FromBody] PatientDTO patient)
        {
            try
            {
                var isUpdated = await _manager.EditPatient(patient);

                return(isUpdated ? Ok() : (IHttpActionResult)BadRequest("changes not excepted!"));
            }
            catch (Exception ex) { return(InternalServerError(ex)); }
        }