public int Add(QuizSummary quizSummary)
 {
     try
     {
         quizSummaryRepo.Add(quizSummary);
         quizSummaryRepo.Save();
     }
     catch (Exception ex)
     {
         string error = ex.Message;
     }
     return(quizSummary.Id);
 }
 public void Delete(QuizSummary quizSummary)
 {
     quizSummaryRepo.Delete(quizSummary);
     quizSummaryRepo.Save();
 }
 public void Update(QuizSummary quizSummary)
 {
     quizSummaryRepo.Update(quizSummary);
     quizSummaryRepo.Save();
 }