title: Insertion failed when used Asp.Net Mvc, Linq, Entity Framework
body: <p>I am trying to add row to table using asp.net mvc kendo ui. But for the first time, it is a success. when do second time, the debugging pointer says "The process or thread has been changed since the last step" and try to add the first insertion values also. Since the table does not allow the duplication of primary key the insertion fails at second time. Please advie.</p>
  
  <pre><code>[AcceptVerbs(HttpVerbs.Post)]
   public ActionResult Insert([DataSourceRequest] DataSourceRequest request, AdminHeaderImage batchModel)
              {
                  if (ModelState.IsValid)
                  {
                      using (var Entity = new DealerEntities())
                      {                    
                          Entity.AdminHeaderImages.AddObject(batchModel);
                          Entity.SaveChanges();
                          return RedirectToAction("Index");
                      }
                  }
                  else
                  {
                      return RedirectToAction("Index");
                  }
              }
  
  public ActionResult Index()
          {
  
  
              using (var Entity = new DealerEntities())
              {
                  var outPut = Entity.AdminHeaderImages.ToList();
                  return View(outPut);
              }
          }
  </code></pre>