public void RegisterNewUser(User user, string type)
        {
            string login = String.Format("{0}.{1}", user.FirstName, user.SecondName);
            if (_authData.ContainsKey(login))
                return;

            AuthData userRegisterData = new AuthData() { Login = login, Password = user.CreatePassword(), Role = type };
            
            _authData.Add(login, userRegisterData);
        }
 private void AddUser(User user, string type)
 {
     _authManager.RegisterNewUser(user, type);
     _users.Add(user);
 }