public ActionResult DeleteSale(int Id) { using (IPL db = new PL()) { if (db.DeleteSale(Id)) { return(RedirectToAction("ShowAllSales", "Admin")); } } return(View()); }