コード例 #1
0
        public CommandResult Update(ProductCreateUpdateReadViewModel viewModel)
        {
            var productUpdate        = ProductCreateUpdateMapping.GetProductUpdateCommand(viewModel);
            var warehouseCommandList = ProductCreateUpdateMapping.GetWarehouseList(viewModel);

            return(_productComandsHandler.Update(productUpdate, warehouseCommandList));
        }
コード例 #2
0
        public CommandResult Delete(int sku)
        {
            var productDelete = ProductCreateUpdateMapping.GetProductDeleteCommand(sku);

            return(_productComandsHandler.Delete(productDelete));
        }