public virtual async Task <bool> TryReduceAsync(ReduceInventoryInput input)
    {
        await CheckPolicyAsync(ProductsPluginsFlashSalesPermissions.FlashSaleInventory.Reduce);

        return(await LocalFlashSaleInventoryManager.TryReduceInventoryAsync(
                   input.TenantId,
                   input.ProviderName,
                   input.StoreId,
                   input.ProductId,
                   input.ProductSkuId,
                   input.Quantity,
                   input.IncreaseSold
                   ));
    }
Esempio n. 2
0
 public virtual Task <bool> TryReduceAsync(ReduceInventoryInput input)
 {
     return(AppService.TryReduceAsync(input));
 }