public ActionResult DriversGridViewPartialUpdate(AllPointsTransport.Models.Driver item)
        {
            var model = db.Drivers;

            if (ModelState.IsValid)
            {
                try
                {
                    var modelItem = model.FirstOrDefault(it => it.DriverID == item.DriverID);
                    if (modelItem != null)
                    {
                        this.UpdateModel(modelItem);
                        db.SaveChanges();
                    }
                }
                catch (Exception e)
                {
                    ViewData["EditError"] = e.Message;
                }
            }
            else
            {
                ViewData["EditError"] = "Please, correct all errors.";
            }
            return(PartialView("_DriversGridViewPartial", model.ToList()));
        }
        public ActionResult DriversGridViewPartialAddNew(AllPointsTransport.Models.Driver item)
        {
            var model = db.Drivers;

            if (ModelState.IsValid)
            {
                try
                {
                    model.Add(item);
                    db.SaveChanges();
                }
                catch (Exception e)
                {
                    ViewData["EditError"] = e.Message;
                }
            }
            else
            {
                ViewData["EditError"] = "Please, correct all errors.";
            }
            return(PartialView("_DriversGridViewPartial", model.ToList()));
        }