Example #1
0
 public int Add(QuizHistory quizHistory)
 {
     try
     {
         quizHistoryRepo.Add(quizHistory);
         quizHistoryRepo.Save();
     }
     catch (Exception ex)
     {
         string error = ex.Message;
     }
     return(quizHistory.Id);
 }
Example #2
0
 public void Delete(QuizHistory quizHistory)
 {
     quizHistoryRepo.Delete(quizHistory);
     quizHistoryRepo.Save();
 }
Example #3
0
 public void Update(QuizHistory quizHistory)
 {
     quizHistoryRepo.Update(quizHistory);
     quizHistoryRepo.Save();
 }