Skip to content

Instantly share code, notes, and snippets.

@carloswm85
Created November 9, 2022 13:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save carloswm85/e95e265c9bf96e081229be9ec333a535 to your computer and use it in GitHub Desktop.
Save carloswm85/e95e265c9bf96e081229be9ec333a535 to your computer and use it in GitHub Desktop.
Session["IdSesion"] = oExchangeData.IdSesion;
Session["NombreUsuario"] = oExchangeData.Nombre;
Session["IdUsuario"] = oExchangeData.IdUsuario;
Session["IdEmpresa"] = oExchangeData.Empresa;
int idSesion = Int32.Parse(Request["IdSesion"]);
System.Collections.ObjectModel.Collection<MiningGuide.Web.WebServicesAccessMiningPortal.Permisos> ListPermisos = oServicio.obtainModulosPermisosBySession(idSesion, 16);
List<int> ListaPermisos = new List<int>();
foreach (MiningGuide.Web.WebServicesAccessMiningPortal.Permisos oPermiso in ListPermisos)
ListaPermisos.Add(oPermiso.IdModulo);
HttpContext.Session["ListaPermisos"] = ListaPermisos;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment