public DefaultViewModel(ProductCatalogService productCatalogService, ProductOrderService productOrderService) { this.productCatalogService = productCatalogService; ReorderDialog = new ReoderDialogViewModel(productOrderService); // refresh grid and display the alert when items are reordered ReorderDialog.ItemsReordered += () => { AlertType = AlertType.Success; AlertText = "The product was reordered successfully."; Products.RequestRefresh(); }; }
public ReoderDialogViewModel(ProductOrderService productOrderService) { this.productOrderService = productOrderService; }