//METODO PARA TRAER LAS MEMBRESIAS public string get_memberships() { try { if (SoapHeader == null) { throw new Exception("Requiere Validacion"); } if (!SoapHeader.blCredencialesValidas(SoapHeader)) { throw new Exception("Requiere Validacion"); } L_Componentes logi = new L_Componentes(); DataTable Membresias = logi.Membresia(); string data = JsonConvert.SerializeObject(Membresias); return(data); } catch (Exception ex) { return("Ha Ocurrido Un Error Inesperado " + ex.Message); } }
//METODO PARA TRAER LAS EMPRESAS ACTIVAS POR MEDIO DE UN JSON public string traerEmpresasActivas() { try { if (SoapHeader == null) { throw new Exception("Requiere Validacion"); } if (!SoapHeader.blCredencialesValidas(SoapHeader)) { throw new Exception("Requiere Validacion"); } L_Componentes logi = new L_Componentes(); DataTable data = logi.SolicitudesAceptadas(); string retorno = JsonConvert.SerializeObject(data); return(retorno); } catch (Exception ex) { throw ex; } }