public ActionResult DeleteConfirmed(int id) { nomenclaturadhl nomenclaturadhl = db.nomenclaturadhl.Find(id); db.nomenclaturadhl.Remove(nomenclaturadhl); db.SaveChanges(); return(RedirectToAction("Index")); }
public ActionResult Edit([Bind(Include = "id,tipocheckpoint,codigo,descripcion,statusherbalife,observaciones")] nomenclaturadhl nomenclaturadhl) { if (ModelState.IsValid) { db.Entry(nomenclaturadhl).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(nomenclaturadhl)); }
public ActionResult Create([Bind(Include = "id,tipocheckpoint,codigo,descripcion,statusherbalife,observaciones")] nomenclaturadhl nomenclaturadhl) { if (ModelState.IsValid) { db.nomenclaturadhl.Add(nomenclaturadhl); db.SaveChanges(); return(RedirectToAction("Index")); } return(View(nomenclaturadhl)); }
// GET: nomenclaturadhls/Delete/5 public ActionResult Delete(int?id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } nomenclaturadhl nomenclaturadhl = db.nomenclaturadhl.Find(id); if (nomenclaturadhl == null) { return(HttpNotFound()); } return(View(nomenclaturadhl)); }