public async Task EnableListingAsync(long listingId) { var command = new EnableListingCommand { ListingId = listingId }; await pipelineService.HandleCommandAsync(command); }
/// <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); }