public async Task <IActionResult> GetStoresAsync() { (var storesDal, var elapsedTime) = await _storesRepository.GetAllStoresAsync(); var stores = storesDal.Select(store => store.ToOutputModel()); _logger.LogInformation($"Successfully fetched details of all the stores in {elapsedTime} ms."); return(Ok(new { ExecutionTime = $"{elapsedTime} ms.", RecordsFetched = stores.Count(), Result = stores })); }