title: Url.Action How to add parameter value from the model
body: <p>In controller I have the action "GetPhoto":</p>
  
  <pre><code>public FileResult GetPhoto(int id)
  {
      ...
  }
  </code></pre>
  
  <p>Also, I have Razor code where I'am trying to dynamically add ID parameter from the model:</p>
  
  <pre><code>@model ISPIS.Models.KodFazeBiljke
  ...
  &lt;img src="@Url.Action("GetPhoto", new { id = model.KodFazeBiljkeId })" alt="" width="250" height="190"/&gt;
  </code></pre>
  
  <p>However, it's not possible to write "id = model.KodFazeBiljkeId" because, model does not exist in the current context.</p>
  
  <p>Any solution? Thanks!</p>