Ejemplo n.º 1
0
    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
                   ));
    }
Ejemplo n.º 2
0
 public virtual Task <bool> TryReduceAsync(ReduceInventoryInput input)
 {
     return(AppService.TryReduceAsync(input));
 }