Esempio n. 1
0
        public IActionResult DeleteHystroscopy(long id)
        {
            Hystroscopy Hystroscopys = Hystroscopy_repo.Find(id);

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

            Hystroscopy_repo.Delete(Hystroscopys);
            return(Ok());
        }
Esempio n. 2
0
 public IActionResult AddHystroscopy([FromBody] Hystroscopy model)
 {
     Hystroscopy_repo.Add(model);
     return(new OkObjectResult(new { HystroscopyID = model.HystroscopyId }));
 }