In your project under the App_Start folder you'll have a file named RouteConfig.cs this is where you can specify custom routing for your application.
By default you will have the following
routes.MapRoute(
name: "Default",
url: "{controller}/{action}/{id}",
defaults: new { controller = "Home", action = "Index", id = UrlParameter.Optional }
);
Which will be hit if you did something like Url.Action("Edit", "Account", new {id = user.Id})
If you want to accomodate for your rule where you don't want to change userId to id then you can create one as follows:
routes.MapRoute(
name: "EditRule",
url: "{controller}/{action}/{userId}",
defaults: new { controller = "Edit", action = "Account", userId = UrlParameter.Optional }
);
NOTE: the custom rule should appear before your default rule otherwise the default rule will be hit
userIdtoidthen it'll hit your default route of{controller}/{action}/{id}