Exemple #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"});
        }
Exemple #2
0
 //Insert/Update
 public void Add(Player player)
 {
     db.Players.InsertOnSubmit(player);
 }
Exemple #3
0
 partial void UpdatePlayer(Player instance);
Exemple #4
0
 partial void DeletePlayer(Player instance);
Exemple #5
0
 partial void InsertPlayer(Player instance);