Esempio n. 1
0
        public ActionResult NewPlayer(string name)
        {
            var player = new Player { Name = name };

            playerRep.Add(player);
            playerRep.Save();

            return RedirectToRoute(new {controller = "Home", action = "Index"});
        }
Esempio n. 2
0
 //Insert/Update
 public void Add(Player player)
 {
     db.Players.InsertOnSubmit(player);
 }
Esempio n. 3
0
 partial void UpdatePlayer(Player instance);
Esempio n. 4
0
 partial void DeletePlayer(Player instance);
Esempio n. 5
0
 partial void InsertPlayer(Player instance);