I am trying to creata a custom route which will accept this action
public async Task Index(ReportPage currentPage, string id)
{
/* Implementation of action. You can create your own view model class that you pass to the view or
* you can pass the page type for simpler templates */
// todo: check if the report id is valid
Report report = await // get report
var model = new ReportPageViewModel(currentPage, report);
return View(model);
}
I have added this route
routes.MapContentRoute(
name: "Epi",
url: "{language}/{node}/{action}/{id}",
defaults: new { controller = "ReportPage", action = "Index", id = UrlParameter.Optional }
);
But I get this error
Page could not be loaded
The link you specified does not work. This may either be the result of temporary maintenance or an incorrect link.
I am trying to creata a custom route which will accept this action
I have added this route
But I get this error
Page could not be loaded
The link you specified does not work. This may either be the result of temporary maintenance or an incorrect link.