public ActionResult DeleteConfirmed(long id) { EntityTypeDetailField entitytypedetailfield = db.EntityTypeDetailFields.Find(id); db.EntityTypeDetailFields.Remove(entitytypedetailfield); db.SaveChanges(); return(RedirectToAction("Index")); }
// // GET: /EntityTypeDetailField/Details/5 public ActionResult Details(long id = 0) { EntityTypeDetailField entitytypedetailfield = db.EntityTypeDetailFields.Find(id); if (entitytypedetailfield == null) { return(HttpNotFound()); } return(View(entitytypedetailfield)); }
public ActionResult Edit(EntityTypeDetailField entitytypedetailfield) { if (ModelState.IsValid) { db.Entry(entitytypedetailfield).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } ViewBag.EntityTypeID = new SelectList(db.EntityTypes, "EntityTypeID", "EntityTypeName", entitytypedetailfield.EntityTypeID); return(View(entitytypedetailfield)); }
// // GET: /EntityTypeDetailField/Edit/5 public ActionResult Edit(long id = 0) { EntityTypeDetailField entitytypedetailfield = db.EntityTypeDetailFields.Find(id); if (entitytypedetailfield == null) { return(HttpNotFound()); } ViewBag.EntityTypeID = new SelectList(db.EntityTypes, "EntityTypeID", "EntityTypeName", entitytypedetailfield.EntityTypeID); return(View(entitytypedetailfield)); }
public ActionResult Edit(EntityTypeDetailField entitytypedetailfield) { if (ModelState.IsValid) { db.Entry(entitytypedetailfield).State = EntityState.Modified; db.SaveChanges(); return RedirectToAction("Index"); } ViewBag.EntityTypeID = new SelectList(db.EntityTypes, "EntityTypeID", "EntityTypeName", entitytypedetailfield.EntityTypeID); return View(entitytypedetailfield); }