Exemple #1
0
        public ActionResult List()
        {
            NoticeListModel model = new NoticeListModel();

            //model.FriendLinkList = FriendLinks.GetFriendLinkList();

            string[] sizeList = StringHelper.SplitString(WorkContext.SiteConfig.FriendLinkThumbSize);

            ViewData["size"] = sizeList[sizeList.Length / 2];
            SiteUtils.SetAdminRefererCookie(Url.Action("list"));
            return(View(model));
        }
Exemple #2
0
        //
        // GET: /Notice/

        public ActionResult Index(string page)
        {
            ViewData["AdditionHeader"] = "我的通知";
            if (string.IsNullOrEmpty(page))
            {
                page = "1";
            }
            int recordCount = 0;

            Users.ClearCfgNoticeCount(CurrentUser.ID);
            NoticeListModel model = new NoticeListModel();

            model.CurUser       = CurrentUser;
            model.CurUserConfig = CurrentUserConfig;
            model.Notices       = Notices.GetNoticesByUID(CurrentUser.ID, Convert.ToInt32(page), 20, ref recordCount);
            model.PageIndex     = Convert.ToInt32(page);
            model.PageSize      = 20;
            model.RecordCount   = recordCount;
            return(View(model));
        }