示例#1
0
        public ActionResult AddPackFac(Package_Facilities f)
        {
            Package p = new Models.Package();

            f.P_ID = Convert.ToInt32(TempData["P_ID"]);
            f.add();
            return(RedirectToAction("PackFacilitiesList", new { a = f.P_ID }));
        }
示例#2
0
        public ActionResult DeleteFacility(int a)
        {
            Package_Facilities pf = new Package_Facilities();

            pf.P_ID = Convert.ToInt32(TempData["P_ID"]);
            pf.F_ID = a;
            pf.delete();
            return(RedirectToAction("PackFacilitiesList", new { a = pf.P_ID }));
        }
示例#3
0
        public ActionResult DeletePackage(int a)
        {
            Package p = new Models.Package();

            p.P_ID = a;
            p.delete();
            Package_Facilities pf = new Package_Facilities();

            pf.P_ID = a;
            pf.delete();
            return(RedirectToAction("Package"));
        }