예제 #1
0
        public IActionResult DeleteProduct(string key, int Id)
        {
            _logger.LogInfo(key, LogEvents.DeleteItem, $"Attemp to delete product with Id: {Id}");

            _productFacade.DeleteProduct(key, Id);
            _logger.LogInfo(key, LogEvents.DeleteItem, $"Product with Id: {Id} deleted successfully");
            return(Ok());
        }