public Task <Player> Create(newplayer player) { Player p = new Player(); p.Name = player.Name; p.Id = Guid.NewGuid(); p.IsBanned = false; p.Score = 0; p.CreationTime = DateTime.Now; p.Tag = player.Tag; return(repo.Create(p)); }
public Task <Player> Create([FromBody] newplayer player) { return(pros.Create(player)); }