Beispiel #1
0
        //
        // GET: /Admin/Label/

        public ActionResult Index(int?page, string name, string translation)
        {
            LabelRepository objlab    = new LabelRepository(SessionCustom);
            PaginInfo       paginInfo = new PaginInfo()
            {
                PageIndex = page != null ? page.Value : 1
            };

            return(this.View(new Labels()
            {
                UserPrincipal = CustomUser,
                Module = this.Module,
                CollLabels = objlab.GetAllPaging(name, translation, paginInfo, CurrentLanguage.LanguageId.Value),
                ColModul = CustomMemberShipProvider.GetModuls(CustomUser.UserId, SessionCustom, HttpContext),
                Pagininfo = paginInfo,
                CurrentLanguage = CurrentLanguage
            }));
        }