Exemplo n.º 1
0
        public IActionResult DeleteOtPatientCase(long id)
        {
            OtPatientCase otPatientCases = OtPatientCase_repo.Find(id);

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

            OtPatientCase_repo.Delete(otPatientCases);
            return(Ok());
        }
Exemplo n.º 2
0
 public IActionResult AddOtPatientCase([FromBody] OtPatientCase model)
 {
     OtPatientCase_repo.Add(model);
     return(new OkObjectResult(new { OtPatientCaseID = model.OtPatientCaseId }));
 }