コード例 #1
0
        public IActionResult DeletePatientReference(long id)
        {
            PatientReference PatientReference = ref_repo.Find(id);

            if (PatientReference == null)
            {
                return(NotFound());
            }

            ref_repo.Delete(PatientReference);
            return(Ok());
        }
コード例 #2
0
 public IActionResult UpdatePatientReference([FromBody] PatientReference model)
 {
     ref_repo.Update(model);
     return(new OkObjectResult(new { PatientReferenceId = model.PatientReferenceId }));
 }