title: how to call controller action method from partial view
body: <p>I have following _PartilView.cshtml</p>
  
  <pre><code> @model= Project.ViewModels.UserViewModel
  
   @foreach (var item in Model.Users)
   {
     &lt;li data-thumb="@Url.Action("Sample", "Image", new { imageid = item.ImageValue})"&gt;&lt;/li&gt;
   }
  </code></pre>
  
  <p>but this is not call to the <code>Sample</code> method in <code>Image</code> controller, since I cant use JavaScript in PartialView, what the approach would be better to solve this ?</p>