public static List <int> getListClientes() { List <int> listClientes = new List <int>(); if (SessionSistema.getSession("listClientes") != null) { listClientes = SessionSistema.getSession("listClientes") as List <int>; } return(listClientes); }
public static List <T> getListaRecursos <T>() { string json = (string)SessionSistema.getSession("listaRecursos"); if (String.IsNullOrEmpty(json)) { return(new List <T>()); } return(JsonConvert.DeserializeObject <List <T> >(json)); }
public static int getIdPerfilUsuario() { return(UtilNumber.toInt32(SessionSistema.getSession("idPerfilUser_logged"))); }
public static int getIdUser() { return(UtilNumber.toInt32(SessionSistema.getSession("idUser_logged"))); }
public static object getUser() { return(SessionSistema.getSession("user_logged")); }
public static object getPermissoes() { return(SessionSistema.getSession("listPermissions")); }