Beispiel #1
0
        public ActionResult Section(int id = 1)
        {
            Pager <Section> pager = new Pager <Section>();

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

            IOrderedQueryable <Section> sections = SectionView.GetAllSection();

            ViewBag.page       = id;
            ViewBag.sections   = pager.GetPage(sections, id);
            ViewBag.pageNumber = pager.GetPageNumber(sections);
            ViewBag.subjects   = SubjectView.GetAllSubject().ToList();

            return(View());
        }