Пример #1
0
        public Registered CreateNewRegisteredUser(string login, string password)
        {
            var user = new RegisteredUser(login, password);

            UsersReg.AddUser(user);
            return(user);
        }
 public OrderRepository(Registered user)
 {
     if (UsersReg.Users.Any(u => u.LoginName == user.LoginName))
     {
         _user = user;
     }
     else
     {
         UsersReg.AddUser(user);
         _user = user;
     }
 }
Пример #3
0
 public Registered LogIn(string login, string password) => UsersReg.GetUserByLoginAndPassword(login, password);