Joonas Westlin 10/2/2017

Find out if a URL matches an action in ASP.NET MVC Core

Read Original

This article provides a detailed tutorial on determining if a given URL and HTTP method correspond to an existing controller action in an ASP.NET MVC Core application. It explains how to leverage the IRouteCollection and IHttpContextFactory to create a RouteContext and check for a matching route handler, covering both conventional and attribute routing.

Find out if a URL matches an action in ASP.NET MVC Core

Comments

No comments yet

Be the first to share your thoughts!

Browser Extension

Get instant access to AllDevBlogs from your browser

Top of the Week