Example #1
0
        public Task <Player> CreatePlayer(NewPlayer player)
        {
            Player createePlayer = new Player();

            createePlayer.Id           = Guid.NewGuid();
            createePlayer.Name         = player.Name;
            createePlayer.level        = 0;
            createePlayer.Score        = 0;
            createePlayer.IsBanned     = false;
            createePlayer.CreationTime = DateTime.Now;
            return(IMR.CreatePlayer(createePlayer));
        }
Example #2
0
 public Task <Player> CreatePlayer([FromBody] NewPlayer player)
 {
     return(PP.CreatePlayer(player));
 }