示例#1
0
        public PartialViewResult GetTransactionsPage()
        {
            LoggingService.Info(GetType());

            if (rulesEngineService.IsCustomerPaymentsEnabled())
            {
                string partialView = paymentProviderFactory.GetTransactionsPartialView(
                    UmbracoContext,
                    false);

                return(PartialView(partialView));
            }

            return(default(PartialViewResult));
        }
示例#2
0
        public PartialViewResult GetTransactionsPage()
        {
            LoggingService.Info(GetType());

            if (rulesEngineService.IsCustomerPaymentsEnabled())
            {
                string partialView = paymentProviderFactory
                                     .GetTransactionsPartialView(UmbracoContext, true);

                IEnumerable <TransactionViewModel> viewModels = paymentManager.GetTransactionsViewModel(UmbracoContext);

                return(PartialView(partialView, viewModels));
            }

            return(default(PartialViewResult));
        }