public HttpResponseMessage GetByUsuarioId(int id)
        {
            HttpClient client   = new HttpClient();
            var        response = client.GetAsync(HttpClientConf.HttpClientConfigGet("Usuarios/GetByUsuarioId", new
            {
                id
            })).Result;

            return(response);
        }
예제 #2
0
        public HttpResponseMessage GetCidadesByEstadoId(int id)
        {
            var response = new HttpResponseMessage();
            var client   = new HttpClient();

            response = client.GetAsync(HttpClientConf.HttpClientConfigGet("Cidades/GetCidadesByEstadoId", new
            {
                id
            })).Result;
            return(response);
        }
예제 #3
0
        public HttpResponseMessage GetClienteByCpf(string cpf)
        {
            HttpResponseMessage response;
            //Create a query
            HttpClient client = new HttpClient();

            response = client.GetAsync(HttpClientConf.HttpClientConfigGet("Clientes/GetByClienteId", new
            {
                cpf
            })).Result;
            return(response);
        }
예제 #4
0
        public HttpResponseMessage GetAllClientes(int op)
        {
            HttpResponseMessage response;
            //Create a query
            HttpClient client = new HttpClient();

            response = client.GetAsync(HttpClientConf.HttpClientConfigGet("Clientes/GetAllClientes", new
            {
                op
            })).Result;
            return(response);
        }
예제 #5
0
        public HttpResponseMessage GetByClienteId(int id)
        {
            HttpResponseMessage response;
            //Create a query
            HttpClient client = new HttpClient();

            response = client.GetAsync(HttpClientConf.HttpClientConfigGet("Clientes/GetByClienteId", new
            {
                id
            })).Result;
            return(response);
        }