private ActionResult Success(BaseContactFormModel model) { TempData["Success"] = true; var thanksPage = CurrentPage.Children(x => x.DocumentTypeAlias == "ThankYouPage").FirstOrDefault(); return(RedirectToUmbracoPage(thanksPage)); }
public ActionResult Error(BaseContactFormModel model) { TempData["FaultyModel"] = model; return(CurrentUmbracoPage()); }