Ejemplo n.º 1
0
        public ActionResult DeleteConfirmed(long id)
        {
            EntityTypeDetailField entitytypedetailfield = db.EntityTypeDetailFields.Find(id);

            db.EntityTypeDetailFields.Remove(entitytypedetailfield);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
Ejemplo n.º 2
0
        //
        // GET: /EntityTypeDetailField/Details/5

        public ActionResult Details(long id = 0)
        {
            EntityTypeDetailField entitytypedetailfield = db.EntityTypeDetailFields.Find(id);

            if (entitytypedetailfield == null)
            {
                return(HttpNotFound());
            }
            return(View(entitytypedetailfield));
        }
Ejemplo n.º 3
0
 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));
 }
Ejemplo n.º 4
0
        //
        // 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);
 }