public ActionResult Inicio() { try { DataSet data = new DataSet(); ViewBag.ApplicationActive = true; ViewBag.ReferenciaInicio = ModuleControlRetorno() + "App/Inicio"; ViewBag.ReferenciaHome = ModuleControlRetorno() + "App/Inicio"; ViewBag.ReferenciaRegistro = ModuleControlRetorno() + "Auth/RegistroUsuario"; ViewBag.ReferenciaOficio = ModuleControlRetorno() + "Oficios/Inicio"; if (Session["IdUser"] != null && Session["IdUser"].ToString() != "") { ViewBag.ReferenciaIdUser = Session["IdUser"].ToString(); if (Session["UserName"] != null && Session["UserName"].ToString() != "") { ViewBag.ReferenciaUserName = Session["UserName"].ToString(); } if (Session["UserType"] != null && Session["UserType"].ToString() != "") { ViewBag.ReferenciaUserType = Session["UserType"].ToString(); } } ViewBag.ReferenciaEmpresasConPlan = empresa.GetEmpresasPlanesVigente(); } catch (Exception ex) { } return(View()); }