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)); }
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)); }
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)); }
public ActionResult AnswerRejected(ThankYouModel model) { return(View(model)); }
public ActionResult ThankYou(ThankYouModel model) { return(View(model)); }
public ActionResult DisplayThankYouPage() { ThankYouModel thankyouModel = new ThankYouModel(); return View("ThankYou", thankyouModel); }