title: Can i pass a Model from view to controller without Form?
body: <p>Hi guys i have difficulties of passing my model to controller> I wonder if this is a good practice or is it possible to do so. Here's what i want to achieve.</p>
  
  <pre><code>&lt;% foreach (DownloadFile file in Model){ %&gt;
       &lt;a href="&lt;%= Url.Action("DownloadFile", new { File  = file}) %&gt;"&gt;click here to download&lt;/a&gt;
   &lt;% } &gt;%
  </code></pre>
  
  <p>I want to pass the DownloadFile Object "file" to my controller that goes like this:</p>
  
  <pre><code>public ActionResult DownloadLabTestResult(DownloadFile File)
      {
          DownloadFile file = File;
  
          ...
          return new FileStreamResult(Response.OutputStream, Response.ContentType);
  
      }
  </code></pre>
  
  <p>I tried passing a string or integer and its doable. but when i want to pass an object like the above, i get a null value. What's the proper way to do this? thank u!</p>