@inherits Umbraco.Cms.Web.Common.Views.UmbracoViewPage @using Portfolio.Core.Models.ViewModels @using Portfolio.Core.Controllers.Surface @using Portfolio.Core.Extensions @using ContentModels = Umbraco.Cms.Web.Common.PublishedModels @{ Layout = "Master.cshtml"; var thisPage = (IPublishedContent)Model; var submitted = false; if (bool.TryParse(TempData["Success"]?.ToString() ?? "", out var success)) { submitted = true; } }

@(thisPage.GetPageTitle())

@if (submitted) {
@if (success) {

@Model.ThankYouMessage

} else {

@Model.ErrorMessage

}
} else { @using (Html.BeginUmbracoForm("SubmitForm")) {
} }