Ejemplo n.º 1
0
 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.");
     }
 }
Ejemplo n.º 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"]
            }));
        }