Пример #1
0
 public Player Register(Player player)
 {
     using (var context = new ScoreSquidContext())
     {
         return commands.RegisterPlayer(context, player);
     }
 }
Пример #2
0
 public Player RegisterPlayer(ScoreSquidContext context, Player player)
 {
     context.Players.Add(player);
     context.Save();
     return player;
 }
Пример #3
0
 public Player Register(Player player)
 {
     return playerRepository.Register(player);
 }