Пример #1
0
 public ActionResult RemoveProduct(ForDropByIdModel info)
 {
     if (ModelState.IsValid) {
         productRep.Delete(info.ElementId);
         productRep.Save();
         return View();
     }
     return View();
 }
Пример #2
0
 public ActionResult RemoveSale(ForDropByIdModel info)
 {
     if (ModelState.IsValid && info != null) {
         saleRep.Delete(info.ElementId);
         saleRep.Save();
         return View();
     }
     return View();
 }
Пример #3
0
 public ActionResult RemoveManager(ForDropByIdModel info)
 {
     if (ModelState.IsValid)
     {
         managerRep.Delete(info.ElementId);
         managerRep.Save();
         return View();
     }
     return View();
 }