public async Task <ConsultarModelosResponse> ConsultarModelos(ConsultarModelosRequest request) { try { return(await HttpJson <ConsultarModelosRequest, ConsultarModelosResponse> .PostAsync(_client, "api/veiculos/ConsultarModelos", request)); } catch (Exception) { return(null); } }
public async Task <ConsultarAnoModeloResponse> ConsultarAnoModelo(ConsultarAnoModeloRequest request) { try { return(new ConsultarAnoModeloResponse() { AnoModelos = await HttpJson <ConsultarAnoModeloRequest, List <AnoModelos> > .PostAsync(_client, "api/veiculos/ConsultarAnoModelo", request) }); } catch (Exception ex) { return(null); } }
public async Task <ConsultarMarcasResponse> ConsultarMarcas(ConsultarMarcasRequest request) { try { return(new ConsultarMarcasResponse() { Marcas = await HttpJson <ConsultarMarcasRequest, List <MarcaItem> > .PostAsync(_client, "api/veiculos/ConsultarMarcas", request) }); } catch (Exception) { return(null); } }