Ejemplo n.º 1
0
        public virtual IActionResult SubscriptionActivation(Guid token, bool active)
        {
            var subscription = _newsLetterSubscriptionService.GetNewsLetterSubscriptionByGuid(token);

            if (subscription == null)
            {
                return(RedirectToRoute("HomePage"));
            }

            var model = _newsletterWebService.PrepareSubscriptionActivation(subscription, active);

            return(View(model));
        }