Ejemplo n.º 1
0
        public virtual IActionResult CustomerRewardPoints(int?pageNumber)
        {
            if (!_workContext.CurrentCustomer.IsRegistered())
            {
                return(Challenge());
            }

            if (!_rewardPointsSettings.Enabled)
            {
                return(RedirectToRoute("CustomerInfo"));
            }

            var model = _orderModelFactory.PrepareCustomerRewardPoints(pageNumber);

            return(View(model));
        }
Ejemplo n.º 2
0
        public virtual ActionResult CustomerRewardPoints(int?page)
        {
            if (!_workContext.CurrentCustomer.IsRegistered())
            {
                return(new HttpUnauthorizedResult());
            }

            if (!_rewardPointsSettings.Enabled)
            {
                return(RedirectToRoute("CustomerInfo"));
            }

            var model = _orderModelFactory.PrepareCustomerRewardPoints(page);

            return(View(model));
        }