public IActionResult DeleteOtProcedure(long id) { OtProcedure OtProcedure = OtProcedure_repo.Find(id); if (OtProcedure == null) { return(NotFound()); } OtProcedure_repo.Delete(OtProcedure); return(Ok()); }
public IActionResult AddOtProcedure([FromBody] OtProcedure model) { OtProcedure_repo.Add(model); return(new OkObjectResult(new { OtProcedureID = model.OtProcedureId })); }