Ejemplo n.º 1
0
        public List <M_Oficina> consulta(string idcompania)
        {
            ServicioGestionCampania.Ges_CampaniaServiceClient client = new ServicioGestionCampania.Ges_CampaniaServiceClient("BasicHttpBinding_IGes_CampaniaService");

            string dataJson;
            string request;

            request  = "{'a':'" + idcompania + "'}";
            dataJson = client.Listar_Oficinas_Por_CodCompania(request);

            M_Oficina_Response oM_Oficina_Response = HelperJson.Deserialize <M_Oficina_Response>(dataJson);

            return(oM_Oficina_Response.listaOficinas);
        }