title: Data Not Saved after click on submit button - MVC 5
body: <p>After click on the sumbit button and trying to debug the code i don't recieve any error or exception but the data not saved
  I have a class called login ... need the user after click on login button save its data in the database
  This is my Post Action:</p>
  
  <pre><code>    [HttpPost]
      [AllowAnonymous]
      [ValidateAntiForgeryToken]
      public ActionResult Login(Login model, string returnUrl)
      {
          Context db = new Context();
          if (string.IsNullOrEmpty(model.LoginName))
          {
              this.ModelState.AddModelError("LoginName", "this field is required");
              return this.View(model);
          }
          try
          {
              if (ModelState.IsValid)
              {
  
                  var user = new Login { LoginName = model.LoginName, LoginPassword = model.LoginPassword };
                  db.Logins.Add(user);
                  db.SaveChanges();
                  return Redirect("http://www.google.com");
              }
  
  
              else
                  return View();
  
          }
          catch (Exception e)
          {
              return View();
          }
      }
  </code></pre>
  
  <p>And this is my Login Class:</p>
  
  <pre><code>[Table("Login")]
  public partial class Login
  {
      public int ID { get; set; }
  
      [StringLength(50)]
      public string LoginName { get; set; }
  
      [StringLength(10)]
      public string LoginPassword { get; set; }
  }
  </code></pre>
  
  <p>And this is my DBContext:</p>
  
  <pre><code>public class LoginContext : DbContext 
  {
      public LoginContext () : base("LoginContext ")
      {
      }
      public virtual DbSet&lt;Login&gt; Logins { get; set; }
      protected override void OnModelCreating(DbModelBuilder modelBuilder)
      {
          modelBuilder.Conventions.Remove&lt;PluralizingTableNameConvention&gt;();
      }
  }
  </code></pre>
  
  <p>After return to the google link the data not saved.</p>