Esempio n. 1
0
        public ActionResult ActivatePremium()
        {
            string userId = User.Identity.GetUserId();

            _logger.Info("User {0} requested to activate premium", userId);

            _userService.ActivatePremium(userId);

            TempData["ResultMessage"] = string.Format(SuccessMessages.SuccessfullyActivatedPremium);

            return(RedirectToAction("Index", "Home"));
        }