/// <summary> /// Gemmer den aktive kunde /// </summary> /// <author>Mathias Petersen</author> public void SaveActiveCustomer() { customerCatalog.Save(activeCustomer); if (activeCustomer.Id != -1) { customerCatalog.AddToCatalog(activeCustomer); } }
public void Execute(object parameter) { _catalog.Delete(_customerMasterDetailsView.ItemViewModelSelected.DomainObject.Key); _customerMasterDetailsView.ItemViewModelSelected = null; _customerMasterDetailsView.RefreshCustomerItemViewModelCollection(); _catalog.Save(); }
public void Execute(object parameter) { _catalog.Create(new Customer(_customerMasterDetailsViewModel.ItemViewModelSelected.CVR, _customerMasterDetailsViewModel.ItemViewModelSelected.FirstName, _customerMasterDetailsViewModel.ItemViewModelSelected.LastName, _customerMasterDetailsViewModel.ItemViewModelSelected.EmailAddress, _customerMasterDetailsViewModel.ItemViewModelSelected.PhoneNumber, _customerMasterDetailsViewModel.ItemViewModelSelected.Address, _customerMasterDetailsViewModel.ItemViewModelSelected.City, _customerMasterDetailsViewModel.ItemViewModelSelected.AreaCode, _customerMasterDetailsViewModel.ItemViewModelSelected.Info)); _customerMasterDetailsViewModel.RefreshCustomerItemViewModelCollection(); _catalog.Save(); }
public void Execute(object parameter) { _catalog.Save(); }