Пример #1
0
        public ActionResult Index(int index = 0)
        {
            Respuesta model = new Respuesta();

            if (index > 0)
            {
                System.Web.HttpContext.Current.Session["Cultura"] = EngineData.Cultura(index);
                model.Id = index;
            }
            return(View(model));
        }
Пример #2
0
        protected void Application_AcquireRequestState(object sender, EventArgs e)
        {
            if (System.Web.HttpContext.Current.Session["Cultura"] == null)
            {
                System.Web.HttpContext.Current.Session["Cultura"] = EngineData.Cultura(1);
            }

            CultureInfo ci = new CultureInfo(EngineData.GetCultura());

            Thread.CurrentThread.CurrentUICulture = ci;
            Thread.CurrentThread.CurrentCulture   = ci;
        }
Пример #3
0
        public ActionResult Index(string lenguaje = "", int index = 0)
        {
            Funcion.AnularGerente();
            GetGalleta();
            Respuesta model = new Respuesta();

            if (index > 0)
            {
                System.Web.HttpContext.Current.Session["Cultura"] = EngineData.Cultura(index);
                model.Id = index;
            }
            model.Descripcion = "ocultarInicio";
            return(View(model));
        }