コード例 #1
0
        public IActionResult DeletePatientBioChemistryTest(long id)
        {
            BioChemistryTestOnTreatment test = patientbio_repo.Find(id);

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

            patientbio_repo.Delete(test);
            return(Ok());
        }
コード例 #2
0
 public IActionResult UpdatePatientBioChemistryTest([FromBody] BioChemistryTestOnTreatment model)
 {
     try
     {
         patientbio_repo.Update(model);
         return(new OkObjectResult(new { PatientBioChemistryTestID = model.BioChemistryTestOnTreatmentId }));
     }
     catch (Exception e)
     {
         throw;
     }
 }
コード例 #3
0
 public IActionResult AddPatientBioChemistryTest([FromBody] BioChemistryTestOnTreatment model)
 {
     patientbio_repo.Add(model);
     return(new OkObjectResult(new { PatientBioChemistryTestID = model.BioChemistryTestOnTreatmentId }));
 }