예제 #1
0
        public async Task EnableListingAsync(long listingId)
        {
            var command = new EnableListingCommand
            {
                ListingId = listingId
            };

            await pipelineService.HandleCommandAsync(command);
        }
예제 #2
0
 /// <summary>
 /// Enable listing command handler async.
 /// </summary>
 /// <param name="listingCommand">Enable listing command.</param>
 /// <param name="listingRepository">Listing repository.</param>
 public async Task HandleEnableListingAsync(EnableListingCommand listingCommand)
 {
     await listingRepository.EnableListingAsync(listingCommand.ListingId);
 }