public async Task <IActionResult> AggregateAsync() { List <AggregatedTransaction> results = await _httpRequestService.AggregateAsync(); if (results == null) { return(BadRequest(new { message = "Error trying to aggregate transactions" })); } return(Ok(JsonConvert.SerializeObject(results))); }