title: ActionResult not being called
body: <p>I have a view, where I'm calling an ActionResult method, but putting a breakpoint in the method tells me it's not being called.</p>
  
  <pre><code>&lt;div&gt;
  &lt;ul class="list-group"&gt;
      @foreach (var item in Model)
      {
          &lt;li class="list-group-item"&gt;
              &lt;h4&gt;Slide ID: @item.SlideId&lt;/h4&gt;
              &lt;p&gt;&lt;i&gt;Received: @item.TimeStamp&lt;/i&gt;&lt;/p&gt;
              &lt;div class="row"&gt;
                  &lt;div class="col-md-4"&gt;
                      &lt;h4&gt;@Html.ActionLink("View details", "Well", new {slideid = item.SlideId})&lt;/h4&gt;
                      &lt;img src="@Url.Action("Index", "Images", new {id = item.SlideId})"/&gt; //This is where I want to call the method                       
                  &lt;/div&gt;
              &lt;/div&gt;
          &lt;/li&gt;
      }
  &lt;/ul&gt;
  </code></pre>
  
  <p></p>
  
  <p>And here's the method:</p>
  
  <pre><code>public class ImagesController : Controller
  {
      // GET: Images
      public ActionResult Index(string id)
      {
          byte[] imageData = new byte[0];
          string cs = "Data Source=" + "some path";
  
          using (SQLiteConnection con = new SQLiteConnection(cs))
          {
              string stm = "SELECT LastImage FROM Well WHERE SlideId = " + "'" + id + "'";
              con.Open();
  
              using (SQLiteCommand cmd = new SQLiteCommand(stm, con))
              {
                  using (SQLiteDataReader rdr = cmd.ExecuteReader())
                  {
                      while (rdr.Read())
                      {
                          imageData = Serialize(rdr["LastImage"]);
                      }
  
                      rdr.Close();
  
                  }
              }
  
              con.Close();
          }
          return File(imageData, "image/png");
      }
  
      public static byte[] Serialize(object obj)
      {
          var binaryFormatter = new BinaryFormatter();
          var ms = new MemoryStream();
          binaryFormatter.Serialize(ms, obj);
          return ms.ToArray();
      }
  }
  </code></pre>
  
  <p>What I'm trying to achieve with this code is to load in an image from the database into the view. Any hints as to what I'm doing wrong?</p>
  
  <p>Now with RouteConfig:</p>
  
  <pre><code>public class RouteConfig
  {
      public static void RegisterRoutes(RouteCollection routes)
      {
          routes.IgnoreRoute("{resource}.axd/{*pathInfo}");
  
          routes.MapRoute(
              name: "Default",
              url: "{controller}/{action}/{id}",
              defaults: new { controller = "Home", action = "Index", id = UrlParameter.Optional }
          );
      }
  }
  </code></pre>