public async Task <ServiceResult> Get([FromRoute] string clienteId) { ServiceResult service = new ServiceResult(); try { IEnumerable <VentaDTO> ventas = new List <VentaDTO>(); ventas = await ventaService.BuscarPorClienteAsync(clienteId); var jsonData = ventas; service.Data = jsonData; } catch (Exception ex) { service.Errors(ex); _logger.LogError(ex); } return(service); }