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