public Question(string title, int allowedTime, DifficultyE difficulty, List <Answer> answers) { this.Title = title; this.AllowedTime = allowedTime; this.Difficulty = difficulty; this.Answers = answers; this.QuestionType = this.Answers.Where(c => c.IsCorrect).Count() > 1 ? QuestionTypeE.MultipleChoices : QuestionTypeE.SingleChoice; }
public Question(long id, string title, int allowedTime, DifficultyE difficulty, QuestionTypeE questionType, List <Answer> answers) : this(id, title, allowedTime, difficulty, answers) { this.QuestionType = questionType; }