Beispiel #1
0
 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));
 }
Beispiel #2
0
 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));
 }