public List <E_Sector> obtener_sector_2(string company_Id) { ServicioGestionMaps.Ges_MapsServiceClient mapServices = new ServicioGestionMaps.Ges_MapsServiceClient("BasicHttpBinding_IGes_MapsService"); Sector_request oRequest = new Sector_request(); oRequest.codPais = company_Id; string request; string dataJson; request = Lucky.CFG.JavaMovil.HelperJson.Serialize <Sector_request>(oRequest); dataJson = mapServices.Obtener_Sector_Por_Company_x_Malla(request); Sector_Response response = Lucky.CFG.JavaMovil.HelperJson.Deserialize <Sector_Response>(dataJson); return(response.listaSector); }
public List <E_Sector> obtener_sector(string codPais, string codDepartamento, string codProvincia) { ServicioGestionMaps.Ges_MapsServiceClient mapServices = new ServicioGestionMaps.Ges_MapsServiceClient("BasicHttpBinding_IGes_MapsService"); Sector_request oRequest = new Sector_request(); oRequest.codPais = codPais; oRequest.codDepartamento = codDepartamento; oRequest.codProvincia = codProvincia; string request; string dataJson; request = Lucky.CFG.JavaMovil.HelperJson.Serialize <Sector_request>(oRequest); dataJson = mapServices.Obtener_Sector_Por_PaisDepartamentoProvincia(request); Sector_Response response = Lucky.CFG.JavaMovil.HelperJson.Deserialize <Sector_Response>(dataJson); return(response.listaSector); }