if AdminLogin and AdminPin are int, than
public bool AdminShutdown(int accountID, int accountPin)
{
return (accountID == AdminLogin && accountPin == AdminPin);
}
The error message you get make me think you may have used an =
instead of an ==
EDIT
For your second question
var tempReturnPerson = AccountHoldersList.Single((x => x.AccountNumber == accountId));
should rather be
var tempReturnPerson = AccountHoldersList.FirstOrDefault(x => x.AccountNumber == accountId) ?? new AccountHolders();
If you want the same result as your method.