// To Get Saved Citations public static List <CitationsModel> GetCitations(int SubTopicId, int UserId) { using (EditorsEntities entity = new EditorsEntities()) { var Result = entity.lib_GetSavedCitationList(UserId, SubTopicId); List <CitationsModel> AllCitations = new List <CitationsModel>(); foreach (var item in Result) { CitationsModel Citation = new CitationsModel(); Citation.pmid = item.pmid; Citation.status = item.status; Citation.nickname = item.nickname; Citation.comment = item.comment; Citation.commentupdatedate = item.commentupdatedate; Citation.searchid = item.searchid; Citation.expiredate = item.expiredate; Citation.keepdelete = item.keepdelete; AllCitations.Add(Citation); } return(AllCitations); } }