title: Multiple Parameters to httpget function
body: <p>I have an mvc controller function as a get and I wish to also pass a Device id to certain gets, the device id is a guid which attaches itself to the users mobile.</p>
  
  <p>I know that in a put I can pass a class but using http get and httpclient how does one pass multiple parameters it's too late to switch to asp.net core at this stage of the project might for next release.</p>
  
  <pre><code>// GET: BomDetails/Details/5
  [HttpGet]
  public ActionResult Details(string id)
  {
    List&lt;BomTransAction&gt; result = new List&lt;BomTransAction&gt;();
  
          try
          {
  
              bool doesExit = database.DoesBomTransactionExist(id);
              result = database.GetBomData(id, false);
  
              if (doesExit)
              {
                  result = database.GetBomsTransactionListForDevice(id);
              }
              {
                   result = database.GetBomData(id, true);
              }
          }catch(Exception ex)
          {
              logger.Warn("Exception on details of BomDetailsController " + ex.ToString());
          }           
          return Json(result, JsonRequestBehavior.AllowGet);
      }
  </code></pre>
  
  <p>Its the second function i need to pass the parameter to this will be only used some times so I don't know how to modify my route config to allow for this.</p>
  
  <pre><code>public class RouteConfig
  {
      public static void RegisterRoutes(RouteCollection routes)
      {
          routes.IgnoreRoute("{resource}.axd/{*pathInfo}");
  
          routes.MapRoute(
              name: "Default",
              url: "{controller}/{action}/{id}",
              defaults: new { controller = "Home", action = "Index", id = UrlParameter.Optional }
          );
      }
  }
  </code></pre>