Beispiel #1
0
 internal AccountDto Authenticate(AccountDto account)
 {
     try
     {
         AccountDto accountAuthenticated = null;
         if (IsSupervisor(account))
         {
             accountAuthenticated = GetSupervisorAccount(account);
         }
         else
         {
             var wcf = new WcfService.Service();
             accountAuthenticated = wcf.AuthenticateAccount(account);
         }
         return(accountAuthenticated);
     }
     catch (Exception ex)
     {
         UtilityError.Write(ex);
     }
     return(null);
 }