public ActionResult AddDetection([FromBody] DetectionModel detection)
 {
     _Apprepo.Add(detection);
     _Apprepo.SaveAll();
     return(Ok(detection));
 }
Exemplo n.º 2
0
 public IActionResult Add([FromBody] City city)
 {
     _AppRepo.Add(city);
     _AppRepo.SaveAll();
     return(Ok(city));
 }
 public ActionResult AddUye([FromBody] Uye uye)
 {
     _Apprepo.Add(uye);
     _Apprepo.SaveAll();
     return(Ok(uye));
 }