public ActionResult gvpPedidoDeliveryUpdate(Restaurante.CE_PedidoDelivery item)
        {
            var model = db1.PedidoDelivery;

            if (ModelState.IsValid)
            {
                try
                {
                    var modelItem = model.FirstOrDefault(it => it.pedDeliId == item.pedDeliId);
                    if (modelItem != null)
                    {
                        this.UpdateModel(modelItem);
                        db1.SaveChanges();
                    }
                }
                catch (Exception e)
                {
                    ViewData["EditError"] = e.Message;
                }
            }
            else
            {
                ViewData["EditError"] = "Please, correct all errors.";
            }
            return(PartialView("_gvpPedidoDelivery", model.ToList()));
        }
        public ActionResult gvpPedidoDeliveryAddNew(Restaurante.CE_PedidoDelivery item)
        {
            var model = db1.PedidoDelivery;

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