title: How to get htmlAction id from my controller?
body: <p>The url manage to parse the id over e.g. "mylink/Index/1" however it didn't read my id on the following line.</p>
  
  <pre><code>  @Html.ActionLink("Submit school rating", "Index", "Review", new { id = Model.School_Code }, new { name = "Index" })
  </code></pre>
  
  <p><strong>Controller</strong> (Review Model)</p>
  
  <pre><code>public ActionResult Index(int? id, ReviewSearch model)
          {
              reviews = revGateway.SelectAll();
              if (id == 0)
              {
                  return new HttpStatusCodeResult(HttpStatusCode.BadRequest);
              }
              reviews = reviews.Where(s =&gt; s.School_Code.Equals(id));
  
              if (reviews == null)
              {
                  return HttpNotFound();
              }
              var pageIndex = model.Page ?? 1;
              model.SearchResults = reviews.ToPagedList(pageIndex, RecordsPerPage);
  
              return View(model);
          }
  </code></pre>
  
  <p><strong>View</strong> (School Model)</p>
  
  <pre><code>  @Html.ActionLink("Submit school rating", "Index", "Review", new { id = Model.School_Code }, new { name = "Index" })
  </code></pre>