title: How to get the current route id in mvc
body: <p>im working on a project in mvc. </p>
  
  <p>what i try to do is to get a the current id of the route to use it in a uploadhandler method to insert into this value into my database: </p>
  
  <p>is it possible to get the current route id in a ashx file in mvc?</p>
  
  <p>i have searching a lot and see some answer like: <code>ViewContext.RouteData.Values["id"];</code></p>
  
  <p>what im trying to do is like :</p>
  
  <pre><code>cmd.Parameters.Add("@Ident", SqlDbType.Int).Value = /*HERE write a line to get the current id*/;
  </code></pre>