コード例 #1
0
        public ActionResult Members(int id = 0)
        {
            if (!Permission.LoginedNeed(Request, Response, Session))
            {
                return(null);
            }

            User        user       = (User)Session["user"];
            GroupMember memberInfo = GroupView.GetGroupMember(user.uid, id);

            if (memberInfo == null)
            {
                Permission.BackToPrevPageOrIndex(Request, Response);
                return(null);
            }

            ViewBag.memberInfo = memberInfo;
            ViewBag.members    = GroupView.GetGroupMemberByGID(id).ToList();

            return(View());
        }