Пример #1
0
 public List <PaymentTypeObject> GetPaymentTypes()
 {
     try
     {
         var objList = _paymentTypeRepository.GetPaymentTypes();
         if (objList == null || !objList.Any())
         {
             return(new List <PaymentTypeObject>());
         }
         return(objList);
     }
     catch (Exception ex)
     {
         ErrorLogger.LogError(ex.StackTrace, ex.Source, ex.Message);
         return(new List <PaymentTypeObject>());
     }
 }
Пример #2
0
 public List <PaymentType> GetPaymentTypes()
 {
     return(payment.GetPaymentTypes());
 }
Пример #3
0
 public static List <PaymentType> GetPaymentTypes()
 {
     return(PaymentTypeRepository.GetPaymentTypes());
 }