public static bool SessionOK(Object sesion) { bool resp = false; try { CedFCIC.Entidades.Sesion s = (CedFCIC.Entidades.Sesion)sesion; if (s != null && s.Usuario != null && s.Usuario.Id != null) { resp = true; } } catch { } return(resp); }
public db(CedFCIC.Entidades.Sesion Sesion) { // Constructor this.sesion = Sesion; //cedeiraCultura = new CultureInfo(System.Configuration.ConfigurationManager.AppSettings["Cultura"]); }