public ActionResult GetInvites()
        {
            List <int>       invites = B_Topic.GetInvites(this.UserInfo.UserName);
            List <dto_Topic> tl      = null;

            if (invites != null)
            {
                tl = B_Topic.GetTopics(invites.ToArray());
            }
            B_Topic.ClearInvites(this.UserInfo.UserName);
            ViewBag.List = tl;
            return(PartialView());
        }
        public ActionResult gettopics(int gradeId, int subjectId, int pageIndex, int pageSize)
        {
            int totalCount      = 0;
            List <dto_Topic> tl = B_Topic.GetTopics(gradeId, subjectId, pageIndex, pageSize, out totalCount);

            if (tl != null)
            {
                foreach (var t in tl)
                {
                    T_User u = B_UserRedis.GetUser(t.UserId);
                    t.UserName = u == null ? "" : u.UserName;
                    t.TrueName = u == null ? "" : u.TrueName;
                    string GradeName = "", SubjectName = "";
                    Const.Grades.TryGetValue(t.GradeId, out GradeName);
                    Const.Subjects.TryGetValue(t.SubjectId, out SubjectName);
                    t.GradeName   = GradeName;
                    t.SubjectName = SubjectName;
                }
            }
            ViewBag.List      = tl;
            ViewBag.PageCount = Util.GetTotalPageCount(totalCount, pageSize);
            return(PartialView());
        }