public ActionResult DeleteConfirmed(int id) { pRO_hsEG_cOMPO pRO_hsEG_cOMPO = db.pRO_hsEG_cOMPO.Find(id); db.pRO_hsEG_cOMPO.Remove(pRO_hsEG_cOMPO); db.SaveChanges(); return(RedirectToAction("Index")); }
public ActionResult Edit([Bind(Include = "idCode,C2Codigo,C2cOMPONENTE,C2pORCEN,C2nOcAS,pro_hsEG_Codigo")] pRO_hsEG_cOMPO pRO_hsEG_cOMPO) { if (ModelState.IsValid) { db.Entry(pRO_hsEG_cOMPO).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(pRO_hsEG_cOMPO)); }
public ActionResult Create([Bind(Include = "idCode,C2Codigo,C2cOMPONENTE,C2pORCEN,C2nOcAS,pro_hsEG_Codigo")] pRO_hsEG_cOMPO pRO_hsEG_cOMPO) { if (ModelState.IsValid) { db.pRO_hsEG_cOMPO.Add(pRO_hsEG_cOMPO); db.SaveChanges(); return(RedirectToAction("Index")); } return(View(pRO_hsEG_cOMPO)); }
public ActionResult Delete(int?id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } pRO_hsEG_cOMPO pRO_hsEG_cOMPO = db.pRO_hsEG_cOMPO.Find(id); if (pRO_hsEG_cOMPO == null) { return(HttpNotFound()); } return(View(pRO_hsEG_cOMPO)); }