示例#1
0
        public ActionResult SubmitEmail(NewsletterViewModel model)
        {
            string redirectUrl =
                string.Format(
                    "{0}#{1}",
                    Url.Action("Index"),
                    "Newsletter");

            _newsletterService.SubscribeNewsletter(model.Email, _settings.BackOfficeUrl);
            TempData["Result"] = "Obrigado por subscrever.";
            return(new RedirectResult(redirectUrl));
        }