internal async Task AssignInvoies() { if (BaseViewModel.Instance.CurrentContainerEx == null) { MessageBox.Show("Please Select a Container to Assign"); return; } if (BaseViewModel.Instance.CurrentEntryDataEx != null) { var c = BaseViewModel.Instance.CurrentContainerEx.ContainerEntryDatas.FirstOrDefault( x => x.EntryDataId == BaseViewModel.Instance.CurrentEntryDataEx.InvoiceNo); if (c == null) { c = new ContainerEntryData() { Container_Id = BaseViewModel.Instance.CurrentContainerEx.Container_Id, EntryDataId = BaseViewModel.Instance.CurrentEntryDataEx.InvoiceNo, TrackingState = TrackingState.Added }; await ContainerEntryDataRepository.Instance.UpdateContainerEntryData(c).ConfigureAwait(false); MessageBus.Default.BeginNotify(MessageToken.ContainerExesChanged, null, new NotificationEventArgs(MessageToken.ContainerExesChanged)); MessageBox.Show("Complete"); } } else { MessageBox.Show("Please Select an Invoice to Assign, then try again."); } }
public async Task SaveContainerEntryData(ContainerEntryData i) { if (i == null) { return; } using (var ctx = new ContainerEntryDataService()) { await ctx.UpdateContainerEntryData(i).ConfigureAwait(false); } }
public async Task <ContainerEntryData> CreateContainerEntryData(ContainerEntryData entity) { return(await Channel.CreateContainerEntryData(entity).ConfigureAwait(false)); }