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)); }
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; }
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)); }