title: Displaying modelstate error
body: <p>I am having the following code, However the errors causght not being displayed.  What is wrong ?</p>
  
  <pre><code>  public ActionResult DeleteRateGroup(int id)
      {
          try
          {
             RateGroup.Load(id).Delete();
  
              RateGroupListModel list = new RateGroupListModel();
              return GetIndexView(list);
          }
          catch (Exception e)
          {
              RateGroupListModel model = new RateGroupListModel(); 
  
              if (e.InnerException != null)
              {
                  if (e.InnerException.Message.Contains("REFERENCE constraint"))
                      ModelState.AddModelError("Error", "The user has related information and cannot be deleted.");
              }
              else
              {
                  ModelState.AddModelError("Error", e.Message);
              }
              return RedirectToAction("RateGroup", model);
          }
      }
  </code></pre>
  
  <hr>
  
  <pre><code>    @model MvcUI.Models.RateGroupListModel
  
  @{
      View.Title = "RateGroup";
      Layout = "~/Views/Shared/_Layout.cshtml";
  }
  
  &lt;h2&gt;Rate Group&lt;/h2&gt;
  
  @Html.ValidationSummary()
  
  @using (Html.BeginForm())
  </code></pre>
  
  <hr>
  
  <pre><code>    private ActionResult GetIndexView(RateGroupListModel model)
      {
         return View("RateGroup", model);
      }
  
      public ActionResult RateGroup(RateGroupListModel model)
      {
         return GetIndexView(model);
      }
  </code></pre>