public async Task <ServiceResult> Get([FromRoute] string clienteId, [FromQuery] string id) { ServiceResult service = new ServiceResult(); try { ServicioDTO servicio = new ServicioDTO(); servicio = await servicioService.BuscarPorCodigoAsync(clienteId, id); service.Data = servicio; } catch (Exception ex) { service.Errors(ex); _logger.LogError(ex); } return(service); }