I'm trying to make a log in which has two validation methods to check who logged in. Now I have a problem where I need to call two methods at the same time. The code for now is like this, any help is appreciated.
public void Log()
{
Login loginAccount = new Login();
Console.WriteLine("Enter username: \n");
loginAccount.Username = Console.ReadLine();
Console.WriteLine("Enter password: \n");
loginAccount.Password = Console.ReadLine();
List<Login> UserLog = new List<Login>()
{
loginAccount
};
loginAccount.CheckUser(loginAccount.Username);
loginAccount.CheckAdmin(loginAccount.Username);
}