// POST: MaestroCriterioSSTs/Delete/5 public ActionResult DeleteConfirmed(int id) { CriterioSST criterioSST = db.Tbl_CriterioSST.Find(id); db.Tbl_CriterioSST.Remove(criterioSST); db.SaveChanges(); return(RedirectToAction("Index")); }
public ActionResult Edit([Bind(Include = "PK_CriterioSST,Criterio")] CriterioSST criterioSST) { if (ModelState.IsValid) { db.Entry(criterioSST).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(criterioSST)); }
public ActionResult Create([Bind(Include = "PK_CriterioSST,Criterio")] CriterioSST criterioSST) { if (ModelState.IsValid) { db.Tbl_CriterioSST.Add(criterioSST); db.SaveChanges(); return(RedirectToAction("Index")); } return(View(criterioSST)); }
// GET: MaestroCriterioSSTs/Delete/5 public ActionResult Delete(int?id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } CriterioSST criterioSST = db.Tbl_CriterioSST.Find(id); if (criterioSST == null) { return(HttpNotFound()); } return(View(criterioSST)); }