As I just recently changed from WebPages to MVC, and started taking it into practical use, I stumbled across an issue which I haven't been able to find an answer to.
In my administration panel I'm trying to make users able to add dynamic pages, e.g.
"Website.com/Pages/About" - "About" being the dynamic part, the URL should be generated from the database. In WebPages, you could easily do a foreach in the CSHTML and accomplish this, and then in the "Pages"-file, you could grab the dynamic page's URL/name by using "UrlData[0]", however, it seems like I can't use this function in the controller in my MVC project, so I'm looking for an alternative solution for this, I'd like to avoid using ID's in my URL, and simply only have the page's name. I also know I could use query-strings for this, but again, I believe the URL would look a lot better without query-strings in it, at least for this dynamic page-system.
Thank you in advance!