endpointRouteBuilder.MapControllerRoute(name: "MakeModelVariant",
pattern: "{make}/{model}/{term}",
defaults: new { controller = "MakeModelVariant", action = "Index"});
And this is where it comes:
public async Task<IViewComponentResult> InvokeAsync(string make,string model,string term)
{
term = "Control arm";
var modelProducts = await _productService.SearchProductsAsync(keywords: term, pageSize: 4, showHidden: true);
CatalogProductsModel catM = new CatalogProductsModel();
catM.Products = (await _productModelFactory.PrepareProductOverviewModelsAsync(modelProducts)).ToList();
catM.LoadPagedList(modelProducts);
return View(catM);
// return Content("");
}
I get to the component but the values of make, model, term are all null. How can I get values here...