Exemple #1
0
        public bool Save(OnlineTest onlineTest)
        {
            OnlineTestRepository.Save(onlineTest);

            foreach (var question in onlineTest.Questions)
            {
                QuestionRepository.Create(question);
            }
            return(true);
        }
Exemple #2
0
 public IEnumerable <OnlineTest> GetAll()
 {
     return(OnlineTestRepository.GetAll());
 }