public async Task <IActionResult> PaymentSuccess(string form, [FromQuery] string reference) { var result = await _successWorkflow.Process(EBehaviourType.SubmitAndPay, form); var success = new SuccessViewModel { Reference = reference, PageContent = result.HtmlContent, FormName = result.FormName, StartPageUrl = result.StartPageUrl, PageTitle = result.PageTitle, BannerTitle = result.BannerTitle, LeadingParagraph = result.LeadingParagraph }; return(View("../Home/Success", success)); }
public async Task <IActionResult> Success(string form) { var result = await _successWorkflow.Process(EBehaviourType.SubmitForm, form); var success = new SuccessViewModel { Reference = result.CaseReference, PageContent = result.HtmlContent, FormAnswers = result.FormAnswers, FormName = result.FormName, StartPageUrl = result.StartPageUrl, FeedbackPhase = result.FeedbackPhase, FeedbackForm = result.FeedbackFormUrl, PageTitle = result.PageTitle, BannerTitle = result.BannerTitle, LeadingParagraph = result.LeadingParagraph, DisplayBreadcrumbs = result.DisplayBreadcrumbs, Breadcrumbs = result.Breadcrumbs }; return(View(result.ViewName, success)); }