public IActionResult DeleteHystroscopy(long id) { Hystroscopy Hystroscopys = Hystroscopy_repo.Find(id); if (Hystroscopys == null) { return(NotFound()); } Hystroscopy_repo.Delete(Hystroscopys); return(Ok()); }
public IActionResult AddHystroscopy([FromBody] Hystroscopy model) { Hystroscopy_repo.Add(model); return(new OkObjectResult(new { HystroscopyID = model.HystroscopyId })); }