Example #1
0
 public async Task Delete(int productId)
 {
     using (BusMessagingService busService = new BusMessagingService())
     {
         await busService.BusControl.Publish <IDeleteProductCommand>(new DeleteProductCommand { ProductId = productId });
     }
 }
Example #2
0
 public async Task Update(Product product)
 {
     using (BusMessagingService busService = new BusMessagingService())
     {
         await busService.BusControl.Publish <IUpdateProductCommand>(new UpdateProductCommand { Product = product });
     }
 }
Example #3
0
 public async Task Delete(int reviewId)
 {
     using (BusMessagingService busService = new BusMessagingService())
     {
         await busService.BusControl.Publish <IDeleteReviewCommand>(new DeleteReviewCommand { ReviewId = reviewId });
     }
 }
Example #4
0
 public async Task Update(Review review)
 {
     using (BusMessagingService busService = new BusMessagingService())
     {
         await busService.BusControl.Publish <IUpdateReviewCommand>(new UpdateReviewCommand { Review = review });
     }
 }
Example #5
0
 public async Task Delete(int categoryId)
 {
     using (BusMessagingService busService = new BusMessagingService())
     {
         await busService.BusControl.Publish <IDeleteCategoryCommand>(new DeleteCategoryCommand { CategoryId = categoryId });
     }
 }
Example #6
0
 public async Task Update(Category category)
 {
     using (BusMessagingService busService = new BusMessagingService())
     {
         await busService.BusControl.Publish <IUpdateCategoryCommand>(new UpdateCategoryCommand { Category = category });
     }
 }