public void Login() { Console.Write("Enter your username: "******"Enter your password: "); var password = Console.ReadLine(); _user = _login.SignIn(username, password); if (_user.Role == 0) { _regularUser = Authentication <RegularUser>(_user); var menu = new RegularMenu(_regularFunction, _regularUser); menu.Menu(); } else { _adminUser = Authentication <AdminUser>(_user); var menu = new AdminMenu(_adminFunction, _adminUser); menu.Menu(); } }