예제 #1
0
        public async Task <xcuda_Supplementary_unit> Getxcuda_Supplementary_unit(string id, List <string> includesLst = null)
        {
            try
            {
                using (var t = new xcuda_Supplementary_unitClient())
                {
                    var res = await t.Getxcuda_Supplementary_unitByKey(id, includesLst).ConfigureAwait(continueOnCapturedContext: false);

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