コード例 #1
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 }));
        }
コード例 #2
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"));
        }