public HttpResponseMessage GetByUsuarioId(int id) { HttpClient client = new HttpClient(); var response = client.GetAsync(HttpClientConf.HttpClientConfigGet("Usuarios/GetByUsuarioId", new { id })).Result; return(response); }
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); }
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); }
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); }
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); }