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 )); }
public virtual Task <bool> TryReduceAsync(ReduceInventoryInput input) { return(AppService.TryReduceAsync(input)); }