title: What the best way to handle long query strings in MVC?
body: <p>I'm working on an application that will potentially have very long query strings to maintain state.</p>
  
  <p>I'm not sure what the best way to handle these long query strings in the action methods, since  I will end up with a very long list of parameters.</p>
  
  <p>Is it best to access the query string parameters directly from the request object or should I go ahead and create an action method with a very long parameter list?</p>
  
  <p>i.e. a number a configuration parameters need to be passed in to customise the page. so we might have a query string as such: ?rid=123&amp;bid=456&amp;cid=789&amp;did=aaa&amp;bg=333&amp;f=999&amp;.....</p>
  
  <pre><code>        public ActionResult AvailableTimes(int rid, int bid, int cid, string did, string bg, string f......)
          {
            // Do stuff
          }
  </code></pre>
  
  <p>or</p>
  
  <pre><code>public ActionResult AvailableTimes()
          {
            var query = Request.Query;
            // Do stuff
          }
  </code></pre>
  
  <p>Thanks in advance.</p>