public async Task <EntryDataDetailsEx> GetEntryDataDetailsEx(string id, List <string> includesLst = null)
        {
            try
            {
                using (var t = new EntryDataDetailsExClient())
                {
                    var res = await t.GetEntryDataDetailsExByKey(id, includesLst).ConfigureAwait(continueOnCapturedContext: false);

                    if (res != null)
                    {
                        return(new EntryDataDetailsEx(res)
                        {
                            // InventoryItemsEx = (res.InventoryItemsEx != null?new InventoryItemsEx(res.InventoryItemsEx): null),
                            // EntryDataEx = (res.EntryDataEx != null?new EntryDataEx(res.EntryDataEx): null),
                            // AsycudaDocumentSets = new System.Collections.ObjectModel.ObservableCollection<AsycudaDocumentSetEntryDataDetail>(res.AsycudaDocumentSets.Select(y => new AsycudaDocumentSetEntryDataDetail(y)))
                        });
                    }
                    else
                    {
                        return(null);
                    }
                }
            }
            catch (FaultException <ValidationFault> e)
            {
                throw new Exception(e.Detail.Message, e.InnerException);
            }
            catch (Exception)
            {
                Debugger.Break();
                throw;
            }
        }
Esempio n. 2
0
        public async Task <EntryDataDetailsEx> GetEntryDataDetailsEx(string id, List <string> includesLst = null)
        {
            try
            {
                using (var t = new EntryDataDetailsExClient())
                {
                    var res = await t.GetEntryDataDetailsExByKey(id, includesLst).ConfigureAwait(continueOnCapturedContext: false);

                    if (res != null)
                    {
                        return(new EntryDataDetailsEx(res)
                        {
                            // InventoryItemsEx = (res.InventoryItemsEx != null?new InventoryItemsEx(res.InventoryItemsEx): null)
                        });
                    }
                    else
                    {
                        return(null);
                    }
                }
            }
            catch (FaultException <ValidationFault> e)
            {
                throw new Exception(e.Detail.Message, e.InnerException);
            }
            catch (Exception)
            {
                Debugger.Break();
                throw;
            }
        }