コード例 #1
0
        public ActionResult Create(string email)
        {
            IncludeSubscriberCount();
            if (string.IsNullOrEmpty(email))
            {
                return(View());
            }

            AlertsService.SubscribeToNewsletter(email);

            Notice("Du er tilmeldt nyhedsbrevet");
            return(Redirect("~/"));
        }