Beispiel #1
0
 public async Task <ConsultarModelosResponse> ConsultarModelos(ConsultarModelosRequest request)
 {
     try
     {
         return(await HttpJson <ConsultarModelosRequest, ConsultarModelosResponse>
                .PostAsync(_client, "api/veiculos/ConsultarModelos", request));
     }
     catch (Exception)
     {
         return(null);
     }
 }
Beispiel #2
0
 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);
     }
 }
Beispiel #3
0
 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);
     }
 }