I have started doing ASP.NET MVC, but I don't know where to start with this question.
I have created a default application and I have created an EventModel, EventController and a series of the default Event views. It is all working correctly.
However, I want to make the routing work in the following way:
- domain/events -> lists all events, sort of like domain/event does by default
- domain/event/3 -> show a specific event (ID of 3), just like domain/details/3 does by default.
- domain/event/cool-event -> show a specific event based on it's 'slug', which is a property of the EventModel
- domain/event/edit/3 -> edits the event.
I have been playing around with the router and I can't get it to behave like I want it to. Is the above logic easy to implement?