/// <summary>
 /// Get Customer By CustomerId
 /// </summary>
 /// <param name="userId">userId</param>
 /// <param name="customerId">customerId</param>
 /// <returns>Customer</returns>
 public wsPerson GetCustomerById(int userId, int customerId)
 {
     try
     {
         return(_virtualDinerwareClient.GetCustomer(userId, customerId));
     }
     catch (Exception ex)
     {
         _logger.WriteLogError(ex, "VirtualDinerwareClient GetCustomerById");
     }
     return(null);
 }
예제 #2
0
 /// <summary>
 /// Get Customer By CustomerId
 /// </summary>
 /// <param name="userId">userId</param>
 /// <param name="customerId">customerId</param>
 /// <returns>Customer</returns>
 public wsPerson GetCustomerById(int userId, int customerId)
 {
     try
     {
         return(virtualDinerwareClient.GetCustomer(userId, customerId));
     }
     catch (Exception ex)
     {
         logger.WriteLogError("**** Dinerware VirtualClient FAILURE: GetCustomerById Exception Error= " + ex.Message);
         if (ex.InnerException != null)
         {
             logger.WriteLogError("**** InnerException  = " + ex.InnerException.Message);
         }
         throw ex;
     }
 }
예제 #3
0
 /// <summary>
 /// Get Customer By CustomerId
 /// </summary>
 /// <param name="userId">userId</param>
 /// <param name="customerId">customerId</param>
 /// <returns>Customer</returns>
 public wsPerson GetCustomerById(int userId, int customerId)
 {
     return(_virtualDinerwareClient.GetCustomer(userId, customerId));
 }