The Room action in the Admin controller has the attribute route definition of:
[Route("Admin/{id}/{name?}/Room/{roomName}")]
I'm trying to create links in the School view that direct to that route.
asp-controller="Admin" works fine.
But before asp-action="Room", id and name need to be added.
Doing it the other way around seems to be easy. /Admin/Room/{id}/{roomName}, but having information between the controller and action is something I'm fighting with.
The Room action in the Admin controller has the attribute route definition of:
[Route("Admin/{id}/{name?}/Room/{roomName}")]
I'm trying to create links in the School view that direct to that route.
asp-controller="Admin"
works fine. But beforeasp-action="Room"
, id and name need to be added.Doing it the other way around seems to be easy. /Admin/Room/{id}/{roomName}, but having information between the controller and action is something I'm fighting with.