Quantcast
Channel: Optimizely Search & Navigation
Viewing all articles
Browse latest Browse all 6894

Null exception in commerce controller

$
0
0

I am trying to create controller fro commerce as explained in the link below. However, I am getting NULL exception in the parameter of action. e.g. 

currentContent is null in
public class AlloyCategoryController : ContentControllerBase<AlloyNode>
{    public ActionResult Index(AlloyNode currentContent)    {        var model = PageViewModel.Create<AlloyNode>(currentContent);        return View(model);    }
}

https://world.episerver.com/blogs/sorby/dates/2017/9/add-commerce-to-an-alloy-web-site/


Viewing all articles
Browse latest Browse all 6894

Trending Articles