public ActionResult Creat(Provider provider)
 {
     if (ModelState.IsValid)
     {
         dbContext.Providers.Add(provider);
         dbContext.SaveChanges();
         int index = 0;
         index = dbContext.Providers.OrderBy(x => x.Name).ToList().IndexOf(provider);
         return Json(index, JsonRequestBehavior.AllowGet);
     }
     return new HttpStatusCodeResult(400, "Lỗi tạo nhà cung cấp");
 }
 public ActionResult UpdateProvider(Provider provider)
 {
     //provider.EscapeStringName = EscapeUrl.UnicodeParse(provider.Title);
     if (ModelState.IsValid)
     {
         dbContext.Entry(provider).State = EntityState.Modified;
         dbContext.SaveChanges();
         return null;
     }
     else
     {
         return new HttpStatusCodeResult(400, "Lỗi update nhà cung cấp");
     }
 }