示例#1
0
        public IActionResult DeleteHystroscopy(long id)
        {
            Hystroscopy Hystroscopys = Hystroscopy_repo.Find(id);

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

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