Exception in template (\Designs\Dwsimple\nolayout\Paragraph\DeleteProduct.cshtml): System.NullReferenceException: Object reference not set to an instance of an object.
   at CompiledRazorTemplates.Dynamic.edecedcde.Execute()
   at RazorEngine.Templating.TemplateBase.RazorEngine.Templating.ITemplate.Run(ExecuteContext context)
   at RazorEngine.Templating.TemplateService.Run(ITemplate template, DynamicViewBag viewBag)
   at RazorEngine.Templating.TemplateService.Parse(String razorTemplate, Object model, DynamicViewBag viewBag, String cacheName)
   at RazorEngine.Razor.Parse[T](String razorTemplate, T model, String cacheName)
   at Dynamicweb.Rendering.Template.RenderRazorTemplate()
@inherits Dynamicweb.Rendering.RazorTemplateBase<Dynamicweb.Rendering.RazorTemplateModel<Dynamicweb.Rendering.Template>> @using Dynamicweb.Ecommerce.Common; @using Dynamicweb.Ecommerce.Orders; @{ var context = OrderContext.GetOrderContextById(Pageview.Area.Item["QuoteContext"].ToString()); Context.CartContext = context; var idToDelete = System.Web.HttpContext.Current.Request["QuoteLineID"]; var ol = Context.Cart.OrderLines.FirstOrDefault(x => x.Id == idToDelete); if (ol != null) { Context.Cart.OrderLines.Remove(ol); Context.Cart.Save(); } }