public async Task <MessageModel <List <QuestionBank> > > Get(int p = 1, int pagesize = 20, string typeName = "", string isGetAll = "")
        {
            var typeId = (await _questionTypeRepository.Query(d => d.Name != null && d.Name.ToLower() == typeName.ToLower() && !d.IsDeleted)).ToList().FirstOrDefault()?.Id;
            PaginatedList <QuestionBank> blogList = null;

            if (typeId > 0)
            {
                blogList = await _questionBankRepository.QueryPage(d => !d.IsDeleted && d.TypeId == typeId, p, pagesize);
            }
            else
            {
                if (isGetAll.ToLower() == "y")
                {
                    blogList = await _questionBankRepository.QueryPage(d => !d.IsDeleted, p, pagesize);
                }
            }

            return(new MessageModel <List <QuestionBank> >()
            {
                msg = "获取成功",
                success = true,
                response = blogList
            });
        }
        public async Task <MessageModel <List <QuestionTypeTree> > > TypeTree()
        {
            var blogList = (await _questionTypeRepository.Query(d => !d.IsDeleted)).Select(d => new QuestionTypeTree()
            {
                Id   = d.Id,
                Name = d.Name
            }).ToList();

            return(new MessageModel <List <QuestionTypeTree> >()
            {
                msg = "获取成功",
                success = true,
                response = blogList
            });
        }