title: Modelstate.addmodelerror not showing in PartialView
body: <p>addmodelerror isworking fr views but not in partial views.</p>
  
  <p>My Code:
   Partial view "_login"  which is called in view Login.cshtml :</p>
  
  <p>@model MODEL.Identity.LoginViewModel</p>
  
  <pre><code>@using (Ajax.BeginForm("Login", "MyAccount", new AjaxOptions { HttpMethod = "POST"}, new { role = "form" }))
  {
  
     @Html.AntiForgeryToken()
          &lt;div class="main-container"&gt;
              @Html.ValidationSummary(true, "", new { @class = "text-danger" })
  
  
          &lt;div class="container"&gt;............
  </code></pre>
  
  <p>The error messages of email and password are displayed  but not for my  ModelState.AddModelError("", "Nom d'utilisateur ou mot de passe non valide.");
  Code in Action:</p>
  
  <pre><code> [HttpPost]
      [AllowAnonymous]
      [ValidateAntiForgeryToken]
      public async Task&lt;ActionResult&gt; Login(LoginViewModel model, string returnUrl)
      {
          if (ModelState.IsValid)
          {
  
              ApplicationDbContext context = new ApplicationDbContext();              
              var u = await UserManager.FindByEmailAsync(model.Email);
              bool passhash = false;
              if (u != null)
              {
                  passhash = await UserManager.CheckPasswordAsync(u, model.Password);
              }
  
              if (u != null &amp;&amp; passhash)
              {
                  await SignInAsync(u, model.RememberMe);
                   return RedirectToLocal(returnUrl);
              }
              else
              {
                  ModelState.AddModelError("", "Nom d'utilisateur ou mot de passe non valide.");
              }
  
          }
  
          return PartialView("~/views/MyAccount/_login.cshtml",model);
  
      }
  </code></pre>
  
  <p>Help Thanks</p>