示例#1
0
        public async Task AcceptAsync(
            [Summary("The ID value of the campaign to be accepted.")]
            long campaignId,
            [Summary("Whether to bypass the time restriction on campaign acceptance")]
            bool force = false)
        {
            await PromotionsService.AcceptCampaignAsync(campaignId, force);

            await Context.AddConfirmation();
        }
示例#2
0
 public Task Accept(
     [Summary("The ID value of the campaign to be accepted.")]
     long campaignId,
     [Summary("Whether to bypass the time restriction on campaign acceptance")]
     bool force = false)
 => PromotionsService.AcceptCampaignAsync(campaignId, force);
示例#3
0
 public Task Accept(
     [Summary("The ID value of the campaign to be accepted.")]
     long campaignId)
 => PromotionsService.AcceptCampaignAsync(campaignId);