public IActionResult GetProductInfo(string key, int id) { _logger.LogInfo(key, LogEvents.GetItem, $"Attemp to get product with Id: {id} info"); Product Product = _productFacade.GetProductInfo(id); if (Product == null) { _logger.LogError(key, LogEvents.GetItemNotFound, "Attemp to get product info, however product was not found."); return(NotFound()); } else { _logger.LogInfo(key, LogEvents.GetItem, "Product info was fetched successfully"); return(Ok(Product)); } }