public ActionResult Edit(Player player) { db.Entry(player).State = EntityState.Modified; db.SaveChanges(); return RedirectToAction("Index"); }
public ActionResult Create(Player player) { db.Players.Add(player); db.SaveChanges(); return RedirectToAction("Index"); }