public List <PaymentTypeObject> GetPaymentTypeObjects(int?itemsPerPage, int?pageNumber)
 {
     try
     {
         var objList = _paymentTypeRepository.GetPaymentTypeObjects(itemsPerPage, pageNumber);
         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>());
     }
 }