public ActionResult ConfiguraSezioni(TAB_SEZ SEZ)
        {
            DBElementwareCommesseEntities DB = new DBElementwareCommesseEntities();

            foreach (var IDSez in DB.TAB_SEZ)
            {
                ID = IDSez.IDSez;
            }

            ID = ID + 1;
            if (ModelState.IsValid)
            {
                SEZ.IDSez = ID;
                DB.TAB_SEZ.Add(SEZ);
                DB.SaveChanges();
            }

            return(RedirectToAction("ConfiguraSezioni", "Home"));
        }
        public ActionResult ConfiguraSezioni()
        {
            DBElementwareCommesseEntities DB = new DBElementwareCommesseEntities();

            foreach (var IDSez in DB.TAB_SEZ)
            {
                ID = IDSez.IDSez;
            }

            ID = ID + 1;

            var SEZ = new TAB_SEZ();

            SEZ.IDSez = ID;



            return(View(SEZ));
        }