London Dev Meetup Rescheduled! Due to unavoidable reasons, the event has been moved to 21st May. Speakers remain the same—any changes will be communicated. Seats are limited—register here to secure your spot!
AI OnAI Off
London Dev Meetup Rescheduled! Due to unavoidable reasons, the event has been moved to 21st May. Speakers remain the same—any changes will be communicated. Seats are limited—register here to secure your spot!
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.