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; } }
public Registered LogIn(string login, string password) => UsersReg.GetUserByLoginAndPassword(login, password);