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)); }
public Task <Player> Create([FromBody] NewPlayer player) { return(prosessor.Create(player)); }