public string CheckAccountInfo(Account account) { string message = ""; Account anAccount = new Account(); anAccount = accountGateway.CheckAccountInfo(account); if (account.AccountType == anAccount.AccountType && account.Username == anAccount.Username && account.Password == anAccount.Password) { message = "LogIn Successful"; } else { message = "Username Or Password Wrong"; } return(message); }