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)); }
public Task <SellerListing> CreateAsync(int eventId, NewSellerListing listing) { return(CreateAsync(eventId, listing, new SellerListingRequest())); }
public Task <SellerListing> CreateAsync(int eventId, NewSellerListing listing, SellerListingRequest request) { return(CreateAsync(eventId, listing, request, CancellationToken.None)); }
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)); }