private QuizManager() { quiz = new Quiz(); quiz.QuizId = 1; quiz.Score = 0 ; QuestionCount = db.Questions.Count<Question>(); ScoreTable = new List<ResultsDto>(); }
public void InsertQuiz(Quiz quiz) { _appDbContext.Quizzes.Add(quiz); _appDbContext.SaveChanges(); }
public override bool Equals(object obj) { Quiz quiz = obj as Quiz; return(Id == quiz.Id); }
public QuizResults(string participantName, Quiz quiz) { this.participantName = participantName; this.Quiz = quiz; }