public CommandResult Update(ProductCreateUpdateReadViewModel viewModel) { var productUpdate = ProductCreateUpdateMapping.GetProductUpdateCommand(viewModel); var warehouseCommandList = ProductCreateUpdateMapping.GetWarehouseList(viewModel); return(_productComandsHandler.Update(productUpdate, warehouseCommandList)); }
public CommandResult Delete(int sku) { var productDelete = ProductCreateUpdateMapping.GetProductDeleteCommand(sku); return(_productComandsHandler.Delete(productDelete)); }