title: how to pass a folder path to mvc controller
body: <p>I am trying to pass a folder path to a download controller using <code>@Html.ActionLink</code>, but I am getting could not find the location error like </p>
  
  <blockquote>
    <p>Could not find file 'C:\Teerth
    Content\Project\Colege\WebApp\Media\@item.Content'</p>
  </blockquote>
  
  <p>However when I give the hard coded value it does work. May I have suggestions what is wrong with that. </p>
  
  <p>Here is my code:
  Action method:</p>
  
  <pre><code>public FileResult Download(string fileName, string filePath)
  {
      byte[] fileBytes = System.IO.File.ReadAllBytes(filePath);
      string documentName = fileName;
      return File(fileBytes, System.Net.Mime.MediaTypeNames.Application.Octet, documentName);
  }
  </code></pre>
  
  <p>view </p>
  
  <pre><code>@Html.ActionLink("Download", "Download", "Marketing", routeValues: new
  {
      fileName = @item.Content,
      filePath = Server.MapPath("~/Media/@item.Content"), 
      area = "AffiliateAdmin"
  }, htmlAttributes: null)
  </code></pre>