protected void ImportLinksToCommentTable(IList<App.Models.Questions.Questions> questions) { CommentManager commentManager = new CommentManager(); IList<Comment> comments = commentManager.GetList(); LinkManager linkManager = new LinkManager(); foreach (App.Models.Questions.Questions question in questions) { IList<Link> links = linkManager.GetLinksForQuestion(question.QuestionID); if(links != null && links.Count > 0) AddLinksToTheCommentTable(links, comments, question.QuestionID); } }