Ejemplo n.º 1
0
        public ActionResult Users(int id = 1)
        {
            Pager <User> pager = new Pager <User>();

            string keyword = Request.QueryString["content"];
            IOrderedQueryable <User> users = UserView.GetUserByKeyword(keyword);

            ViewBag.page       = id;
            ViewBag.users      = pager.GetPage(users, id);
            ViewBag.pageNumber = pager.GetPageNumber(users);
            ViewBag.keyword    = keyword;

            return(View());
        }
Ejemplo n.º 2
0
        // GET: Manage
        public ActionResult Index(int id = 1)
        {
            Pager <User> pager = new Pager <User>();

            if (!Permission.PremissionNeed(Request, Response, Session, UserRank.ADMINISTATOR))
            {
                return(null);
            }

            IOrderedQueryable <User> users = UserView.GetUserByKeyword("");

            ViewBag.page       = id;
            ViewBag.users      = pager.GetPage(users, id);
            ViewBag.pageNumber = pager.GetPageNumber(users);

            return(View());
        }