title: How to add ModelState.AddModelError message when model item is not binded
body: <p>I am new to MVC4. Here I added the ModelState.AddModelError message to display when the delete operation is not possible. <br/></p>
  
  <pre><code>  &lt;td&gt;
      &lt;a id="aaa" href="@Url.Action("Delete", "Shopping", new { id = Request.QueryString["UserID"], productid = item.ProductID })" style="text-decoration:none"&gt;
      &lt;img alt="removeitem" style="vertical-align: middle;" height="17px" src="~/Images/remove.png"  title="remove" id="imgRemove" /&gt;
        &lt;/a&gt;
        @Html.ValidationMessage("CustomError")
      &lt;/td&gt; 
      @Html.ValidationSummary(true)
  </code></pre>
  
  <p><br/>
  In my controller 
  <br/></p>
  
  <pre><code>public ActionResult Delete(string id, string productid)
          {             
              int records = DeleteItem(id,productid);
              if (records &gt; 0)
              {
                ModelState.AddModelError("CustomError", "The item is removed from your cart");
                 return RedirectToAction("Index1", "Shopping");
              }
              else
              {
                  ModelState.AddModelError(string.Empty,"The item cannot be removed");
                  return View("Index1");
              }
          }
  </code></pre>
  
  <p>Here I didnt pass any of the model item in the View to check for the item in Model and I couldnt get the ModelState error message ..<br/> Any suggestions</p>