示例#1
0
 public Account LoginAccount(Account account)
 {
     try
     {
         Account accounts = (from acc in _accountContext.SelectAll()
                             where acc.Email.Equals(account.Email) &&
                             acc.Wachtwoord.Equals(account.Wachtwoord)
                             select acc).Single();
         return(accounts);
     }
     catch (InvalidOperationException)
     {
         return(null);
     }
 }