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