Example #1
0
        public IList <AccountGroupEntities> GetAllAccountGroup()
        {
            var accgr = _unit.AccountGroupGenericType.GetAll().ToList();

            if (accgr.Any())
            {
                return(Ultis.MapList <AccountGroup, AccountGroupEntities>(accgr));
            }
            return(null);
        }
Example #2
0
        public IList <QuestionTypeEntities> GettAllQuestionType()
        {
            var questiontype = _unit.QuestionTypeGenericType.GetAll().ToList();

            if (questiontype.Any())
            {
                return(Ultis.MapList <QuestionType, QuestionTypeEntities>(questiontype));
            }
            return(null);
        }
Example #3
0
        public IList <ChoicesEntites> GetAllChoices()
        {
            var choices = _unit.ChoiceGenericType.GetAll().ToList();

            if (choices.Any())
            {
                return(Ultis.MapList <Choice, ChoicesEntites>(choices));
            }
            return(null);
        }
Example #4
0
        public IList <SurveyTypeEntities> GetAllSurveyType()
        {
            var data = _unit.SurveyTypeGenericType.GetAll().ToList();

            if (data.Any())
            {
                return(Ultis.MapList <SurveyType, SurveyTypeEntities>(data));
            }
            return(null);
        }
Example #5
0
        public IList <AnswerEntities> GetAllAnswer()
        {
            var answers = _unit.AnswerGenericType.GetAll().ToList();

            if (answers.Any())
            {
                return(Ultis.MapList <Answer, AnswerEntities>(answers));
            }
            return(null);
        }
Example #6
0
        public IList <QuestionGroupEntities> GettAllQuestionGroup()
        {
            var questiongroup = _unit.QuestionGroupGenericType.GetAll().ToList();

            if (questiongroup.Any())
            {
                return(Ultis.MapList <QuestionGroup, QuestionGroupEntities>(questiongroup));
            }
            return(null);
        }
Example #7
0
        public IList <RolesEntites> GettAllRole()
        {
            var roles = _unit.RoleGenericType.GetAll().ToList();

            if (roles.Any())
            {
                return(Ultis.MapList <Role, RolesEntites>(roles));
            }
            return(null);
        }
Example #8
0
        public IList <QuestionEntities> GettAllQuestion()
        {
            var data = _unit.QuestionGenericType.GetAll().ToList();

            if (data.Any())
            {
                return(Ultis.MapList <Question, QuestionEntities>(data));
            }
            return(null);
        }
Example #9
0
        public IList <AcountsEntities> GetAllAccount()
        {
            var acc = _unit.AccontGenericType.GetAll().ToList();

            if (acc.Any())
            {
                return(Ultis.MapList <Account, AcountsEntities>(acc));
            }
            return(null);
        }
Example #10
0
        /// <summary>
        /// Lấy tất cả dữ liệu
        /// </summary>
        /// <returns></returns>
        public IList <SurveyInfoEntities> GetAllSurveyInfo()
        {
            //throw new NotImplementedException();
            var data = _unit.SurveyinfoGenericType.GetAll().ToList();

            if (data.Any())
            {
                return(Ultis.MapList <SurveyInfo, SurveyInfoEntities>(data));
            }
            return(null);
        }