private void BestellungStornieren() { SelectedBestellung.Bestellstatus = "abgebrochen"; dh.UpdateOrder(SelectedBestellung); CustomerMailService.InformCustomerAboutCancellation(SelectedBestellung, dh.GetEmailCustomerForOrder(selectedBestellung)); }
private void ContactCustomer() { if (SelectedBestellung != null && SelectedProdukt != null) { // nur Lieferverzögerung mitteilen CustomerMailService.InformCustomerAboutDelay(SelectedBestellung, dh.GetEmailCustomerForOrder(SelectedBestellung)); } }
private void ProduktLöschen() { if (SelectedBestellung != null && SelectedProdukt != null) { Guid pId = GetIdForProduct(SelectedProdukt); dh.DeleteProductFromOrder(SelectedBestellung.BestellId, pId); SelectedBestellungProdukte = new ObservableCollection <SharedOrderArticle>(SelectedBestellung.Artikel); GetSelectedBestellungProduktnamen(); RefreshOrders(); CancelData(); } CustomerMailService.InformCustomerAboutDeletedProduct(SelectedBestellung, dh.GetEmailCustomerForOrder(selectedBestellung), SelectedProdukt); }