Example #1
0
        public int getCountUser()
        {
            anketaEntities db = new anketaEntities();
            int            t  = db.user.Count(p => (p.answer_text.Count() > 0 && p.answer_text.FirstOrDefault().question.id_form == id) || (p.answer_variant.Count() > 0 && p.answer_variant.FirstOrDefault().variant.question.id_form == id) || (p.answer_table.Count() > 0 && p.answer_table.FirstOrDefault().table_question.question.id_form == id) || (p.answer_file.Count() > 0 && p.answer_file.FirstOrDefault().variant_file.question.id_form == id) || (p.answer_else.Count() > 0 && p.answer_else.FirstOrDefault().question_else.question.id_form == id));

            return(t);
        }