Within the view that is returned from a URL such as /Controller/Action/1 (assuming the default route of controller/action/id), how can I get access to the ID from within the Vie
Simple Answer In Razor:
@Url.RequestContext.RouteData.Values["id"]
In ASP.NET Core
@Url.ActionContext.RouteData.Values["id"]