J'ai un contrôleur qui prend 3 paramterespassant paramètre multiple dans MVC3
public ActionResult Directives(string MachineName, int ProjectId, int CompanyId)
En ce moment, l'URL ressemble à ceci.
/Project/Directives?projectId=41&MachineName=Apple%20Macbook%20Luft
Mais comment puis-je l'obtenir pour ressembler à ceci.
/Project/Directives/41/AppleMacbookAir/
Ce quiestion pourrait vous aider? http://stackoverflow.com/questions/217960/how-can-i-create-a-friendly-url-in-asp-net-mvc –
Si vous avez un itinéraire qui gère le modèle enregistré, vos URL changeront . –