Ejemplo n.º 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));
        }
Ejemplo n.º 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;
        }
Ejemplo n.º 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));
        }