public ActionResult Create(PlayerBetType playerbettype) { if (ModelState.IsValid) { db.PlayerBetTypes.Add(playerbettype); db.SaveChanges(); return RedirectToAction("Index"); } return View(playerbettype); }
public ActionResult Edit(PlayerBetType playerbettype) { if (ModelState.IsValid) { db.Entry(playerbettype).State = EntityState.Modified; db.SaveChanges(); return RedirectToAction("Index"); } return View(playerbettype); }