public ActionResult RemoveProduct(ForDropByIdModel info) { if (ModelState.IsValid) { productRep.Delete(info.ElementId); productRep.Save(); return View(); } return View(); }
public ActionResult RemoveSale(ForDropByIdModel info) { if (ModelState.IsValid && info != null) { saleRep.Delete(info.ElementId); saleRep.Save(); return View(); } return View(); }
public ActionResult RemoveManager(ForDropByIdModel info) { if (ModelState.IsValid) { managerRep.Delete(info.ElementId); managerRep.Save(); return View(); } return View(); }