public async Task <IEnumerable <BusinessSummaryDto> > HandleAsync(BusinessesSummary query) { var businesses = await _repository.GetBusinessesAsync(); var returns = new List <BusinessSummaryDto>(); foreach (var business in businesses) { returns.Add(new BusinessSummaryDto() { Id = business.Id, Name = business.Name, TradingName = business.TradingName }); } _logger.LogInformation($"{returns.Count} summaries returned."); return(returns); }