// To Get ACR Documents in Mylibrary public static List <AcrdocumentsMyLibrary> getAcrDocumentsList(int fid) { using (EditorsEntities entity = new EditorsEntities()) { var ACRDocList = entity.doc_in_subtopic_find(null, fid, null); List <AcrdocumentsMyLibrary> DocList = new List <AcrdocumentsMyLibrary>(); foreach (var item in ACRDocList) { AcrdocumentsMyLibrary doc = new AcrdocumentsMyLibrary(); doc.doc_id = item.doc_id; doc.doc_nm = item.doc_nm; doc.doc_clicks_count = item.doc_clicks_count; doc.Id = item.id; doc.subtopic_id = item.subtopic_id; doc.subtopic_nm = item.subtopic_nm; doc.doc_source = item.doc_source; DocList.Add(doc); } return(DocList); } }