private List <CdnItemVM> fileList_CaseSessionFastDocument(string sourceID) { //Файл към съпровождащи документи, представени в заседание var caseSessionFastDocument = caseSessionFastDocumentService.GetById <CaseSessionFastDocument>(int.Parse(sourceID)); var caseSessionFastDocuments = caseSessionFastDocumentService.CaseSessionFastDocument_SelectByInitId((caseSessionFastDocument.CaseSessionFastDocumentInitId != null ? (caseSessionFastDocument.CaseSessionFastDocumentInitId ?? 0) : caseSessionFastDocument.Id)).ToList(); var model = new List <CdnItemVM>(); foreach (var caseSessionFast in caseSessionFastDocuments) { model.AddRange(cdnService.Select(SourceTypeSelectVM.CaseSessionFastDocument, caseSessionFast.Id.ToString()).ToList()); } return(model); }