public List <PaymentMethodObject> GetPaymentMethodObjects(int?itemsPerPage, int?pageNumber)
 {
     try
     {
         var objList = _paymentMethodRepository.GetPaymentMethodObjects(itemsPerPage, pageNumber);
         if (objList == null || !objList.Any())
         {
             return(new List <PaymentMethodObject>());
         }
         return(objList);
     }
     catch (Exception ex)
     {
         ErrorLogger.LogError(ex.StackTrace, ex.Source, ex.Message);
         return(new List <PaymentMethodObject>());
     }
 }