SaaS CMS has officially launched! Learn more now.

Null exception in commerce controller


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);

Feb 01, 2019 3:28

I'd recommend reading which is the offical docs rather than a 2 year old blog post. Do you have the commerce routing set up?

Feb 01, 2019 15:29
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.