I'm a little confused for what reasons you can achieve something. My website can display a stream of stories for the user, and the feed can be one of several categories. (for example, you can view the All Stories feed or the My Submissions feed).
Regarding routing processing, does it make sense:
1) Have an action (Main / Index) to process different parameters of the "storyCategory" using this routing:
[Route("~/"), Route("")]
[Route("{storyCategory?}/{page?}")]
[Route("{storyCategory?}/Page/{page?}")]
public ActionResult Index(Story.Category storyCategory = Story.Category.None, int page = 1)
OR
2) have a specific action for each storyCategory instead of passing enum in as a parameter:
[Route("~/"), Route("")]
public ActionResult Index(int page = 1)
public ActionResult ReadLater(int page = 1)
public ActionResult PlanToUse(int page = 1)
source
share