public async Task <IEnumerable <AsycudaDocument> > GetAsycudaDocumentByDocument_TypeId(string Document_TypeId, List <string> includesLst = null) { if (Document_TypeId == "0") { return(null); } try { using (AsycudaDocumentClient t = new AsycudaDocumentClient()) { var res = await t.GetAsycudaDocumentByDocument_TypeId(Document_TypeId, includesLst).ConfigureAwait(continueOnCapturedContext: false); if (res != null) { return(res.Select(x => new AsycudaDocument(x)).AsEnumerable()); } else { return(null); } } } catch (FaultException <ValidationFault> e) { throw new Exception(e.Detail.Message, e.InnerException); } catch (Exception) { Debugger.Break(); throw; } }