Esempio n. 1
0
        public static QuizQuestionAnswerVM SetSurveyFormat(QuizQuestionAnswer model, Guid qiid, int takerCount, Guid aid)
        {
            var temp     = SetSubData(model, aid);
            var answered = QuizUserAnswerService.GetByQQIDQAID(model.QuizQuestionsID, model.ID).Count();

            temp.Percent = takerCount > 0? (answered / takerCount) * 100:0;
            return(temp);
        }