Example #1
0
 /// <summary>
 /// Delete listing command handler async.
 /// </summary>
 /// <param name="listingCommand">Delete listing command.</param>
 /// <param name="listingRepository">Listing repository.</param>
 public async Task HandleDeleteListingAsync(DeleteListingCommand listingCommand)
 {
     await listingRepository.DeleteListingAsync(listingCommand.ListingId);
 }
Example #2
0
 public async Task <string> DeleteListingAsync(long id)
 {
     return(await _listingRepository.DeleteListingAsync(id));
 }