When you try to generate a route, for example, using BeginForm, MVC will do everything possible to include in it what you might need.
domain.com/Home/Index/b9f88f80-f31f-4144-9066-55384c9f1cfc, , , .
controller / action / id
/Home / Index / b9f88f80-f31f-4144-9066-55384c9f1cfc
- (, ).
:
@using (Html.BeginForm(null, null, new { @id = string.Empty },
FormMethod.Post, new { @id = "Id" }))
{
}
new { @id = string.Empty } - , .