コード例 #1
0
        public ActionResult Create(PlayerBetType playerbettype)
        {
            if (ModelState.IsValid)
            {
                db.PlayerBetTypes.Add(playerbettype);
                db.SaveChanges();
                return RedirectToAction("Index");
            }

            return View(playerbettype);
        }
コード例 #2
0
 public ActionResult Edit(PlayerBetType playerbettype)
 {
     if (ModelState.IsValid)
     {
         db.Entry(playerbettype).State = EntityState.Modified;
         db.SaveChanges();
         return RedirectToAction("Index");
     }
     return View(playerbettype);
 }