Esempio n. 1
0
        public IActionResult GetProductGroups(string key)
        {
            _logger.LogInfo(key, LogEvents.ListItems, $"Attempt to get product groups list.");
            ProductGroupListResponse productGroupsResponse = _productFacade.GetProductGroups();

            _logger.LogInfo(key, LogEvents.ListItems, $"{ productGroupsResponse.ProductGroups.Count} product groups was/were fetched successfully.");
            return(Ok(productGroupsResponse));
        }