Exemple #1
0
        public async Task <SellerListing> CreateAsync(
            int eventId,
            NewSellerListing listing,
            SellerListingRequest request,
            CancellationToken cancellationToken)
        {
            var createListingLink = await _linkFactory.CreateLinkAsync($"events/{eventId}/sellerlistings").ConfigureAwait(_halClient);

            return(await _halClient.PostAsync <SellerListing>(createListingLink, listing, request, cancellationToken).ConfigureAwait(_halClient));
        }
Exemple #2
0
 public Task <SellerListing> CreateAsync(int eventId, NewSellerListing listing)
 {
     return(CreateAsync(eventId, listing, new SellerListingRequest()));
 }
Exemple #3
0
 public Task <SellerListing> CreateAsync(int eventId, NewSellerListing listing, SellerListingRequest request)
 {
     return(CreateAsync(eventId, listing, request, CancellationToken.None));
 }
Exemple #4
0
        public async Task <SellerListingPreview> CreateSellerListingPreviewAsync(int eventId, NewSellerListing listing)
        {
            var previewLink = await _linkFactory.CreateLinkAsync($"events/{eventId}/sellerlistingpreview").ConfigureAwait(_halClient);

            return(await _halClient.PostAsync <SellerListingPreview>(previewLink, listing).ConfigureAwait(_halClient));
        }