예제 #1
0
        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));
        }