private static bool IsTestingResultAnswerCorrect(TestingResultAnswer aQ) { var selectedAnswers = aQ.TestAnswersSelected.Split(','); return(aQ.TestQuestion .TestAnswers .Where(t => t.IsCorrect) .All(cA => selectedAnswers.Contains(cA.Guid))); }
private static int GetTestingResultAnswerQuestionNumber(TestingResultAnswer aQ) { return(aQ.TestQuestion.Test.TestQuestions.ToList().IndexOf(aQ.TestQuestion)); }