title: MVC Specify Actions with Querystring Params instead of "/" folders
body: <p>In MVC6, is there a way to specify the actions in my URL to be querystrings instead of a path?</p>
  
  <p>E.G. <a href="http://localhost/Index2" rel="nofollow noreferrer">http://localhost/Index2</a> and <a href="http://localhost/Edit" rel="nofollow noreferrer">http://localhost/Edit</a></p>
  
  <p>Both of these fire the Index2 and Edit actions in my controller respectively. But I'm working with a web site where we're only allows to have one single URL (long story)... so it it possible to fire the exact same actions by navigating to respective urls like</p>
  
  <p><a href="http://localhost/Default.aspx?action=Index2" rel="nofollow noreferrer">http://localhost/Default.aspx?action=Index2</a> and <a href="http://localhost/Default.aspx?action=Edit" rel="nofollow noreferrer">http://localhost/Default.aspx?action=Edit</a></p>
  
  <p>I suppose what I could do is just take the dozen or so action functions in my controller and combine them ALL into the Index action and based on the "action" querystring parameter, do a switch/case-select statement and copy each of the original action/subs into their respective chunks under each CASE. But I was hoping there would be something could be done that seemed a little cleaner.</p>
  
  <p>FYI: I don't use querystrings for anything else. All my values are passed from action to action by POSTS</p>