コード例 #1
0
        public bool Save(OnlineTest onlineTest)
        {
            OnlineTestRepository.Save(onlineTest);

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