hello I try to build a small cms. I have manage to store all my content to my database and now I want to call it through a menu from my _layoutpage. (I have built my details page) How can I pass the id for every article in an action link and then at the url to display the alias?
I have used the following code
<li>@Html.ActionLink("History", null, "SiteContents",new { id ="ArticleDetails/1" }, null)</li>
EDIT I correct my code to
<li>@Html.ActionLink("History", "ArticleDetails", "SiteContents",new { id ="1" }, null)</li>
and it works.
Does anyone know how can I bring an alias (I have stored it as a field in my database) to the url so not the id to be appear. thank you.