Let's say I have a model called artikel. this article contains Html "body" text. and a one word title.
Then I want to make a system, where i can use one view to render all of "Article" model's body content.
but use the articles Title prop. to create a Url for the site.
So if i got 2 articles. one titled "About", and one with the title "Contact"
i would end up with Url like "site/About" And "site/Contact"
And since I'm trying to make this from a data source, I need some way to do this dynamic. so i can't just make controllers for each artikel. (Which would be bad if i got many articles anyways)
I been trying in my RouteConfig to setup a mapRoute. but can't find anyway which would do this.
I search the net for it, an tried those solutions.
https://www.youtube.com/watch?v=h405AbJyiH4
https://forums.asp.net/t/2094370.aspx?How+To+Create+URL+Rewrite+In+ASP+NET+C+using+MVC+
But no luck. Anyone that know's how to do this, or that can help me in the right direction.?