public void AddZona(modZona model)
        {
            var id = (from z in bd.Zona
                      orderby z.id descending
                      select z.id + 1).FirstOrDefault();

            model.ID = id;
            bd.AddToZona(model.zonaDB);
            bd.SaveChanges();
        }
        public void GuardarZona(modZona model)
        {
            bool permiteAcceso = false;
            Boolean debug = Boolean.Parse(ConfigurationManager.AppSettings["debug"]);

            permiteAcceso = debug;

            if (Request.Cookies["AccessToken"] != null)
            {
                if (Request.Cookies["AccessToken"].Value == ("RRP").GetHashCode().ToString())
                {
                    permiteAcceso = true;
                }
            }
            if (permiteAcceso)
            {
                var servUbicaciones = new UbicacionesService();
                servUbicaciones.AddZona(model);
            }
        }