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