public ActionResult ThankYou()
        {
            var model      = new ThankYouModel();
            var signUpUser = (User)Session["signUpUser"];

            if (signUpUser == null)
            {
                return(RedirectToAction("Index", "Home"));
            }
            Session["signUpUser"] = null;

            //invio mail di conferma
            model.WelcomeMessage = "Thank you <strong>" + signUpUser.Name + "</strong> for your registration";

            return(View(model));
        }
예제 #2
0
        public ActionResult ThankYou()
        {
            var model      = new ThankYouModel();
            var signUpUser = (User)Session["signUpUser"];

            if (signUpUser == null)
            {
                return(RedirectToAction("Index", "Home"));
            }
            Session["signUpUser"] = null;

            //invio mail di conferma
            string baseUrl     = Request.Url.Scheme + "://" + Request.Url.Authority + Request.ApplicationPath.TrimEnd('/') + "/";
            var    resultEmail = EmailHelper.SendConfirmationEmail(baseUrl, signUpUser);

            model.WelcomeMessage = "Thank you <strong>" + signUpUser.Name + "</strong> for your registration";

            return(View(model));
        }
예제 #3
0
        public ActionResult PostAnswer(PostAnswerModel model, string test)
        {
            TryUpdateModel(model);

            AnsweringService service = new AnsweringService();
            var success = service.PostAnswerModel(model);

            var returnModel = new ThankYouModel
            {
                LawID = model.LawID,
                RepresentativeDisplayName = model.RepresentativeDisplayName,
                RepresentativeID          = model.RepresentativeID,
            };

            // Redirect to action is a hack as html input is causing issues
            if (success)
            {
                return(RedirectToAction("ThankYou", returnModel));
            }

            return(RedirectToAction("AnswerRejected", returnModel));
        }
예제 #4
0
 public ActionResult AnswerRejected(ThankYouModel model)
 {
     return(View(model));
 }
예제 #5
0
 public ActionResult ThankYou(ThankYouModel model)
 {
     return(View(model));
 }
예제 #6
0
        public ActionResult DisplayThankYouPage()
        {
            ThankYouModel thankyouModel = new ThankYouModel();

            return View("ThankYou", thankyouModel);
        }