public async Task <IActionResult> GetStoreAsync([FromRoute] string storeName)
        {
            if (string.IsNullOrWhiteSpace(storeName))
            {
                var errorMessage = "Invalid store name.";
                _logger.LogError(errorMessage);
                return(BadRequest(errorMessage));
            }

            var store = (await _storesRepository.GetStoreAsync(storeName)).ToOutputModel();

            _logger.LogInformation($"Successfully fetched details of the store with name '{storeName}'.");
            return(Ok(store));
        }