//Delete packages
 public ActionResult Delete(int id)
 {
     packages.DeletePackage(id);
     TempData["Message"] = "Package Deleted";
     return(RedirectToAction("ViewPackage"));
 }
예제 #2
0
 public ActionResult DeletePackage(int id)
 {
     packageDetails.DeletePackage(id);
     return(RedirectToAction("DisplayPackage"));
 }