コード例 #1
0
        public ActionResult DeleteConfirmed(int id)
        {
            pRO_hsEG_ePP pRO_hsEG_ePP = db.pRO_hsEG_ePP.Find(id);

            db.pRO_hsEG_ePP.Remove(pRO_hsEG_ePP);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
コード例 #2
0
 public ActionResult Edit([Bind(Include = "idCode,C8Codigo,C8pROTECCION,C8ePP,C8mASiNFO,pro_hsEG_Codigo")] pRO_hsEG_ePP pRO_hsEG_ePP)
 {
     if (ModelState.IsValid)
     {
         db.Entry(pRO_hsEG_ePP).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     ViewBag.C8Codigo = new SelectList(db.pRO_hsEG, "Codigo", "C1nOMBRE", pRO_hsEG_ePP.C8Codigo);
     return(View(pRO_hsEG_ePP));
 }
コード例 #3
0
        // GET: pRO_hsEG_ePP/Details/5
        public ActionResult Details(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            pRO_hsEG_ePP pRO_hsEG_ePP = db.pRO_hsEG_ePP.Find(id);

            if (pRO_hsEG_ePP == null)
            {
                return(HttpNotFound());
            }
            return(View(pRO_hsEG_ePP));
        }
コード例 #4
0
        // GET: pRO_hsEG_ePP/Edit/5
        public ActionResult Edit(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            pRO_hsEG_ePP pRO_hsEG_ePP = db.pRO_hsEG_ePP.Find(id);

            if (pRO_hsEG_ePP == null)
            {
                return(HttpNotFound());
            }
            ViewBag.C8Codigo = new SelectList(db.pRO_hsEG, "Codigo", "C1nOMBRE", pRO_hsEG_ePP.C8Codigo);
            return(View(pRO_hsEG_ePP));
        }