public async Task <User> GetUserById(Guid id) { try { var result = await _stockApi.GetUserById(id); return(result.Content); } catch (ApiException e) { throw new StockApiException(e.Message); } catch (Exception e) { _logger.LogError(e.Message); throw; } }