public PayByPhoneResponseViewModel IsEligible(string memberId, string countryCode)
 {
     try
     {
         var orderingProfile = DistributorOrderingProfileProvider.GetProfile(memberId, countryCode);
         int learningPoint   = OrderProvider.GetAccumulatedPCLearningPoint(memberId, "pcpoint");
         if (orderingProfile != null)
         {
             return(new PayByPhoneResponseViewModel {
                 Enabled = orderingProfile.IsPayByPhoneEnabled, LearningPoint = learningPoint
             });
         }
     }
     catch (Exception ex)
     {
         LoggerHelper.Exception("General", ex);
     }
     return(null);
 }
예제 #2
0
 public int GetAccumulatedPCLearningPoint(string memberID, string field)
 {
     return(OrderProvider.GetAccumulatedPCLearningPoint(memberID, field));
 }