Leasing ansøgning

Error executing template "Designs/Swift/Navigation/Nav_Sidenavigation_Custom.cshtml"
System.NullReferenceException: Object reference not set to an instance of an object.
   at CompiledRazorTemplates.Dynamic.RazorEngine_248d9c94d4ce4744927e179f4a295d7e.Execute() in C:\inetpub\solutions\Goecker-2022-Prod\Files\Templates\Designs\Swift\Navigation\Nav_Sidenavigation_Custom.cshtml:line 16
   at RazorEngine.Templating.TemplateBase.RazorEngine.Templating.ITemplate.Run(ExecuteContext context, TextWriter reader)
   at RazorEngine.Templating.RazorEngineService.RunCompile(ITemplateKey key, TextWriter writer, Type modelType, Object model, DynamicViewBag viewBag)
   at RazorEngine.Templating.RazorEngineServiceExtensions.<>c__DisplayClass16_0.<RunCompile>b__0(TextWriter writer)
   at RazorEngine.Templating.RazorEngineServiceExtensions.WithWriter(Action`1 withWriter)
   at Dynamicweb.Rendering.RazorTemplateRenderingProvider.Render(Template template)
   at Dynamicweb.Rendering.TemplateRenderingService.Render(Template template)
   at Dynamicweb.Rendering.Template.RenderRazorTemplate()

1 @inherits Dynamicweb.Rendering.ViewModelTemplate<Dynamicweb.Frontend.Navigation.NavigationTreeViewModel> 2 @using Dynamicweb.Core 3 4 @if (Model.Nodes.Any()) 5 { 6 var theme = Model.Parameters.ContainsKey("Theme") ? Model.Parameters["Theme"].ToString().ToLower() : string.Empty; 7 var rootPageId = Model.Parameters.ContainsKey("RootpageId") ? Model.Parameters["RootpageId"].ToString().ToLower() : string.Empty; 8 bool mobileOrTablet = Pageview.Device == Dynamicweb.Frontend.Devices.DeviceType.Mobile || Pageview.Device == Dynamicweb.Frontend.Devices.DeviceType.Tablet; 9 var guid = Guid.NewGuid(); 10 11 <button class="btn btn-secondary mb-3 @(mobileOrTablet ? "" : "hidden")" data-bs-toggle="collapse" data-bs-target="#sidenav-@guid">@Translate("Menu")</button> 12 13 <div class="sidenav border-1 d-flex flex-column @theme @(mobileOrTablet ? "collapse" : "")" id="sidenav-@guid"> 14 @if (!string.IsNullOrWhiteSpace(rootPageId)) 15 { 16 var rootPage = Dynamicweb.Services.Pages.GetPage(Converter.ToInt32(rootPageId)); 17 18 <a class="sidenav-link border-1 border-bottom border-top py-2 ps-1 text-decoration-none link-primary fw-bold" href="/Default.aspx?ID=@rootPage.ID">@rootPage.GetDisplayName()</a> 19 20 if (Model.Nodes.Any()) 21 { 22 <div class="subnav d-flex flex-column"> 23 @foreach (var node in Model.Nodes) 24 { 25 @RenderNavigationLink(node) 26 } 27 </div> 28 } 29 } 30 </div> 31 } 32 33 @helper RenderNavigationLink(Dynamicweb.Frontend.Navigation.NavigationTreeNodeViewModel node) 34 { 35 var paddingStart = node.Level + 1; 36 37 <a class="sidenav-link border-1 border-bottom py-2 ps-@paddingStart @(node.IsActive ? "bg-light" : "") text-decoration-none link-primary" href="/Default.aspx?ID=@node.PageId">@node.Name</a> 38 39 if (node.Nodes.Any()) 40 { 41 <div class="subnav d-flex flex-column"> 42 @foreach (var childNode in node.Nodes) 43 { 44 @RenderNavigationLink(childNode) 45 } 46 </div> 47 } 48 }

Information.

Vi kan nu, meget nemt og hurtigt, undersøge dine muligheder for at få en godkendelse til en leasingfinansiering. Du skal blot udfylde en kort formular på linket nedenfor. Du kan forvente svar fra arbejdsdag til arbejdsdag. Ansøgningen er uforpligtende.

New column