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