예제 #1
0
        public Task <Player> Create(NewPlayer player)
        {
            Player tommie = new Player();

            tommie.Name         = player.Name;
            tommie.CreationTime = DateTime.Now;
            tommie.IsBanned     = false;
            tommie.Score        = 0;
            tommie.playerId     = Guid.NewGuid();
            return(repository.CreatePlayer(tommie));
        }
예제 #2
0
 public Task <Player> Create([FromBody] NewPlayer player)
 {
     return(prosessor.Create(player));
 }