public PersonQuestionAnswerView GetPrevQuestion(int curQuestionId)
        {
            Question question = new Question();

            question = Database.QuestionRepository.Get(q => q.Id < curQuestionId).OrderBy(p => p.Id).LastOrDefault();
            PersonQuestionAnswerView personQuestionAnswerView = PersonQuestionAnswerView.FromQuestion(question);

            return(personQuestionAnswerView);
        }
 public PersonQuestionAnswerView GetQuestionByNum(int num)
 => PersonQuestionAnswerView.FromQuestion(Database.QuestionRepository.GetAll().OrderBy(q => q.Id).Skip(num - 1).Take(1).FirstOrDefault());