Пример #1
0
        public PlayerResult Create(DataContracts.Player player)
        {
            var modelPlayer = player.ToDomainModel();

            ValidatePlayer(ref modelPlayer);
            var result = Manager.Create(modelPlayer);

            return(new PlayerResult()
            {
                Player = result.ToDataModel(),
                Status = new Status()
                {
                    Code = "200"
                }
            });
        }
Пример #2
0
 public PlayerResult Update(DataContracts.Player player, string playerId)
 {
     throw new NotImplementedException();
 }