public List<vEP_CDP_DTO> GetCDPsExt(string NRO_CDP) { DT_ParametrosBLL objDT_Par = new DT_ParametrosBLL(); vDT_PARAMETROS parametro = objDT_Par.Get("API_CDP"); string uri = parametro.VALOR; string enduri = NRO_CDP; var client = new RestClient(uri); var request = new RestRequest(enduri, Method.GET); List<vEP_CDP_DTO> queryResult = client.Execute<List<vEP_CDP_DTO>>(request).Data; return queryResult; }
public List<object> GetRPsExt(string NRO_RP, string VIGENCIA) { DT_ParametrosBLL objDT_Par = new DT_ParametrosBLL(); vDT_PARAMETROS parametro = objDT_Par.Get("API_RP"); string uri = parametro.VALOR; string enduri = NRO_RP + "/" + VIGENCIA; var client = new RestClient(uri); var request = new RestRequest(enduri, Method.GET); List<object> queryResult = client.Execute<List<object>>(request).Data; return queryResult; }