Server Error in '/' Application.

The parameters dictionary contains a null entry for parameter 'onlyNew' of non-nullable type 'System.Boolean' for method 'System.Web.Mvc.ActionResult ProductCategoryCatalogueAjax(System.String, System.String, System.String, System.String, System.String, Boolean, Boolean, Boolean, Int32, Int32, Int32, Boolean, Boolean)' in 'Web.Controllers.ProductSearchController'. An optional parameter must be a reference type, a nullable type, or be declared as an optional parameter.
Parameter name: parameters

Description: An unhandled exception occurred.

Exception Details: System.ArgumentException: The parameters dictionary contains a null entry for parameter 'onlyNew' of non-nullable type 'System.Boolean' for method 'System.Web.Mvc.ActionResult ProductCategoryCatalogueAjax(System.String, System.String, System.String, System.String, System.String, Boolean, Boolean, Boolean, Int32, Int32, Int32, Boolean, Boolean)' in 'Web.Controllers.ProductSearchController'. An optional parameter must be a reference type, a nullable type, or be declared as an optional parameter.
Parameter name: parameters

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:


[ArgumentException: The parameters dictionary contains a null entry for parameter 'onlyNew' of non-nullable type 'System.Boolean' for method 'System.Web.Mvc.ActionResult ProductCategoryCatalogueAjax(System.String, System.String, System.String, System.String, System.String, Boolean, Boolean, Boolean, Int32, Int32, Int32, Boolean, Boolean)' in 'Web.Controllers.ProductSearchController'. An optional parameter must be a reference type, a nullable type, or be declared as an optional parameter.
Parameter name: parameters]
   System.Web.Mvc.ActionDescriptor.ExtractParameterFromDictionary(ParameterInfo parameterInfo, IDictionary`2 parameters, MethodInfo methodInfo) +430
   System.Web.Mvc.ReflectedActionDescriptor.Execute(ControllerContext controllerContext, IDictionary`2 parameters) +111
   System.Web.Mvc.ControllerActionInvoker.InvokeActionMethod(ControllerContext controllerContext, ActionDescriptor actionDescriptor, IDictionary`2 parameters) +35
   System.Web.Mvc.<>c__DisplayClass15.<InvokeActionMethodWithFilters>b__12() +80
   System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodFilter(IActionFilter filter, ActionExecutingContext preContext, Func`1 continuation) +454
   System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodFilter(IActionFilter filter, ActionExecutingContext preContext, Func`1 continuation) +454
   System.Web.Mvc.ControllerActionInvoker.InvokeAction(ControllerContext controllerContext, String actionName) +524


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.7.4063.0