public IActionResult DeleteOtPatientCase(long id) { OtPatientCase otPatientCases = OtPatientCase_repo.Find(id); if (otPatientCases == null) { return(NotFound()); } OtPatientCase_repo.Delete(otPatientCases); return(Ok()); }
public IActionResult AddOtPatientCase([FromBody] OtPatientCase model) { OtPatientCase_repo.Add(model); return(new OkObjectResult(new { OtPatientCaseID = model.OtPatientCaseId })); }