コード例 #1
0
        private void BestellungStornieren()
        {
            SelectedBestellung.Bestellstatus = "abgebrochen";
            dh.UpdateOrder(SelectedBestellung);

            CustomerMailService.InformCustomerAboutCancellation(SelectedBestellung, dh.GetEmailCustomerForOrder(selectedBestellung));
        }
コード例 #2
0
 private void ContactCustomer()
 {
     if (SelectedBestellung != null && SelectedProdukt != null)
     {
         // nur Lieferverzögerung mitteilen
         CustomerMailService.InformCustomerAboutDelay(SelectedBestellung, dh.GetEmailCustomerForOrder(SelectedBestellung));
     }
 }
コード例 #3
0
        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);
        }