public List <QuestionClasses> Fetch(string SQLCMD, int NUMQs) { QuestionIO ReadQuestions = new QuestionIO(); List <QuestionClasses> Questions = ReadQuestions.Reader(SQLCMD, NUMQs); return(Questions); }
public void SaveData(List <QuestionClasses> list, int Total, int NUMQs) { QuestionIO SaveQuestions = new QuestionIO(); SaveQuestions.Write(list); int Percent = ((Total * 100) / NUMQs); ResultsIO SaveResults = new ResultsIO(); SaveResults.Write(Percent); }