public void Add(Player player)
 {
     if (playerValidationManager.CheckIfRealPerson(player))
     {
         _playerDal.Add(player);
     }
     else
     {
         Console.WriteLine("Lütfen gerçek bir kişi ile tekrar deneyin.");
     }
 }
Exemple #2
0
        public ResponseMessage <Player> Register(LoginModel model)
        {
            var tempDictionary = HashPassword(model.Password);

            return(playerDal.Add(new Player
            {
                Email = model.Username,
                PasswordHash = tempDictionary["PasswordHash"],
                HashSalt = tempDictionary["Salt"]
            }));
        }