internal async Task NewContainer(global::EntryDataQS.Client.Entities.ContainerEx containerEx) { BaseViewModel.Instance.CurrentContainerEx = new ContainerEx() { TrackingState = TrackingState.Added }; }
internal async Task SaveContainer(global::EntryDataQS.Client.Entities.ContainerEx container) { if (container == null) { return; } if (CoreEntities.ViewModels.BaseViewModel.Instance.CurrentAsycudaDocumentSetEx != null) { container.AsycudaDocumentSetId = CoreEntities.ViewModels.BaseViewModel.Instance.CurrentAsycudaDocumentSetEx.AsycudaDocumentSetId; await ContainerExRepository.Instance.SaveContainer(container).ConfigureAwait(false); MessageBus.Default.BeginNotify(MessageToken.ContainerExesChanged, null, new NotificationEventArgs(MessageToken.ContainerExesChanged)); MessageBox.Show("Complete"); } else { MessageBox.Show("Please Select Document Set then try again."); } }