public IActionResult DeletePatientBioChemistryTest(long id) { BioChemistryTestOnTreatment test = patientbio_repo.Find(id); if (test == null) { return(NotFound()); } patientbio_repo.Delete(test); return(Ok()); }
public IActionResult UpdatePatientBioChemistryTest([FromBody] BioChemistryTestOnTreatment model) { try { patientbio_repo.Update(model); return(new OkObjectResult(new { PatientBioChemistryTestID = model.BioChemistryTestOnTreatmentId })); } catch (Exception e) { throw; } }
public IActionResult AddPatientBioChemistryTest([FromBody] BioChemistryTestOnTreatment model) { patientbio_repo.Add(model); return(new OkObjectResult(new { PatientBioChemistryTestID = model.BioChemistryTestOnTreatmentId })); }