Exemplo n.º 1
0
        public IActionResult DeleteOtProcedure(long id)
        {
            OtProcedure OtProcedure = OtProcedure_repo.Find(id);

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

            OtProcedure_repo.Delete(OtProcedure);
            return(Ok());
        }
Exemplo n.º 2
0
 public IActionResult AddOtProcedure([FromBody] OtProcedure model)
 {
     OtProcedure_repo.Add(model);
     return(new OkObjectResult(new { OtProcedureID = model.OtProcedureId }));
 }