Example #1
0
        public ActionResult Index(string SearchTerms = "", int CurrentPageNumber = 1, int ItemsPerPage = 20)
        {
            ManageFloraViewModel vModel = new ManageFloraViewModel(TemplateCache.GetAll <IFlora>())
            {
                AuthedUser = UserManager.FindById(User.Identity.GetUserId()),

                CurrentPageNumber = CurrentPageNumber,
                ItemsPerPage      = ItemsPerPage,
                SearchTerms       = SearchTerms
            };

            return(View("~/Views/GameAdmin/Flora/Index.cshtml", vModel));
        }
Example #2
0
        public ActionResult Index(string SearchTerms = "", int CurrentPageNumber = 1, int ItemsPerPage = 20)
        {
            var vModel = new ManageFloraViewModel(BackingDataCache.GetAll<IFlora>());
            vModel.authedUser = UserManager.FindById(User.Identity.GetUserId());

            vModel.CurrentPageNumber = CurrentPageNumber;
            vModel.ItemsPerPage = ItemsPerPage;
            vModel.SearchTerms = SearchTerms;

            return View("~/Views/GameAdmin/Flora/Index.cshtml", vModel);
        }