Ejemplo n.º 1
0
 public ActionResult Edit([Bind(Include = "color,ID,name")] company company)
 {
     if (ModelState.IsValid)
     {
         db.Entry(company).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(company));
 }
Ejemplo n.º 2
0
 public ActionResult Edit([Bind(Include = "color2,location,Description")] child child)
 {
     if (ModelState.IsValid)
     {
         db.Entry(child).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(child));
 }