// Get GenesForThread

        public static List <GeneMyLibrary> GetGenesForThreadMyLibrary(int PMID)
        {
            using (EditorsEntities entity = new EditorsEntities())
            {
                var Result = entity.lib_GetGenesForThread(PMID);
                List <GeneMyLibrary> ResultMain = new List <GeneMyLibrary>();
                foreach (var item in Result)
                {
                    GeneMyLibrary Gene = new GeneMyLibrary();
                    Gene.GeneId = item.GeneID;
                    Gene.Name   = item.name;
                    ResultMain.Add(Gene);
                }
                return(ResultMain);
            }
        }