コード例 #1
0
 /// <summary>
 /// Find the exiting customer in dinerware system
 /// </summary>
 /// <param name="userId">UserId</param>
 /// <param name="customerId">CustomerId</param>
 /// <returns>Flag</returns>
 public wsPerson[] IsDinerwareCustomerAvailable(int userId, string searchTerm)
 {
     try
     {
         return(_virtualDinerwareClient.FindCustomersByAny(userId, searchTerm));
     }
     catch (Exception ex)
     {
         _logger.WriteLogError(ex, "VirtualDinerwareClient IsDinerwareCustomerAvailable");
     }
     return(null);
 }
コード例 #2
0
        /// <summary>
        /// Find the exiting customer in the dinerware system
        /// </summary>
        /// <param name="userId">UserId</param>
        /// <param name="customerId">CustomerId</param>
        /// <returns>Flag</returns>
        public bool FindDinerwareCustomer(int userId, string searchTerm)
        {
            var findCustomerResponse = virtualDinerwareClient.FindCustomersByAny(userId, searchTerm);

            if (findCustomerResponse.Count() != 0)
            {
                return(false);
            }
            else
            {
                return(true);
            }
        }
コード例 #3
0
 /// <summary>
 /// Find the exiting customer in dinerware system
 /// </summary>
 /// <param name="userId">UserId</param>
 /// <param name="customerId">CustomerId</param>
 /// <returns>Flag</returns>
 public wsPerson[] IsDinerwareCustomerAvailable(int userId, string searchTerm)
 {
     try
     {
         return(virtualDinerwareClient.FindCustomersByAny(userId, searchTerm));
     }
     catch (Exception ex)
     {
         logger.WriteLogError("**** Dinerware VirtualClient FAILURE: IsDinerwareCustomerAvailable Exception Error= " + ex.Message);
         if (ex.InnerException != null)
         {
             logger.WriteLogError("**** InnerException  = " + ex.InnerException.Message);
         }
         throw ex;
     }
 }