project - Rental
Rental
Inga produkter valda

Din orderlista är tom

Exception in template (Designs\SkanskaMaskin\Paragraph\_service_account.cshtml): System.NullReferenceException: Object reference not set to an instance of an object.
   at Softgear.SkanskaMaskin.Data.Business.ProjectManager.getProjects(User u)
   at Softgear.SkanskaMaskin.Data.Business.AccountManager.GetProjectForLoggedInUser(String number)
   at Softgear.SkanskaMaskin.Data.Business.AccountManager.setCurrentProject(String code)
   at CompiledRazorTemplates.Dynamic.ceecccbbaaaaadad.Execute()
   at RazorEngine.Templating.TemplateBase.RazorEngine.Templating.ITemplate.Run(ExecuteContext context)
   at RazorEngine.Razor.Parse[T](String razorTemplate, T model, String cacheName)
   at Dynamicweb.Rendering.Template.Output()
@using System.Web @using Dynamicweb.eCommerce.Orders @using Softgear.SkanskaMaskin.Data.Business @{ var newCode = Dynamicweb.Base.Request("code"); const string notFound = "not found"; if (HttpContext.Current.Request.Headers["x-requested-with"] == null) { var newProject = AccountManager.setCurrentProject(newCode); HttpContext.Current.Response.Redirect("/", true); } else { var newProject = AccountManager.GetProjectForLoggedInUser(newCode); if (newProject != null) { @WebHelper.serializeToJson(AccountManager.getProjectByNumber(newCode)); /* Dynamicweb.eCommerce.Common.Context.CartContext = OrderContext.GetOrderContextById(newCode); if (Dynamicweb.eCommerce.Common.Context.CartContext == null) { var cart = Dynamicweb.eCommerce.Common.Context.Cart; if (cart == null) { cart = new Order() { IsCart = true, LanguageID = "LANG1", ShopID = "SHOP1", OrderContextID = newCode }; cart.Save(); Dynamicweb.eCommerce.Common.Context.SetCart(cart); } } */ } else { HttpContext.Current.Response.StatusCode = 418; @notFound } } }