Esempio n. 1
0
 public ActionResult LampEditPartial(Lamp lmp)
 {
     db.Entry(lmp).State = EntityState.Modified;
     db.SaveChanges();
     return RedirectToAction("LampSH");
 }
Esempio n. 2
0
 public ActionResult LampCreate(Lamp lmp)
 {
     db.Lamps.Add(lmp);
     db.SaveChanges();
     return RedirectToAction("LampSH");
 }