public ActionResult Edit([Bind(Include = "Id,StoreURL,StoreName,SlotMachineStartNo,SlotMachineEndNo")] Tempo tempo) { if (ModelState.IsValid) { db.Entry(tempo).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(tempo)); }
public ActionResult Edit([Bind(Include = "Id,SlotModelName,SlotModelShortName,ThroughType")] SlotModel slotModel) { if (ModelState.IsValid) { db.Entry(slotModel).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(slotModel)); }