Hello,
I have never used this, but on few searches, I found it to be possible. Please follow the below links.
routes.MapRoute(name: "AnyName",
url: "/{controller}/{Action}/{paramName}",
defaults: new { controller = "User", action = "Login" },
constraints: {paramName= new GuidConstraint() }
);
Using GUID constraints in routing:
asp.net mvc - How can I create a route constraint of type System.Guid?[
^]
GUID in Query string
c# - Rewriting URl containg GUID as query string in Asp.net MVC Razor[
^]
I hope these links will help you understand.
Thanks