public ActionResult Index(string SearchTerms = "", int CurrentPageNumber = 1, int ItemsPerPage = 20) { ManageRaceDataViewModel vModel = new ManageRaceDataViewModel(TemplateCache.GetAll <IRace>()) { AuthedUser = UserManager.FindById(User.Identity.GetUserId()), CurrentPageNumber = CurrentPageNumber, ItemsPerPage = ItemsPerPage, SearchTerms = SearchTerms }; return(View("~/Views/GameAdmin/Race/Index.cshtml", vModel)); }
public ActionResult Index(string SearchTerms = "", int CurrentPageNumber = 1, int ItemsPerPage = 20) { var vModel = new ManageRaceDataViewModel(BackingDataCache.GetAll<Race>()); vModel.authedUser = UserManager.FindById(User.Identity.GetUserId()); vModel.CurrentPageNumber = CurrentPageNumber; vModel.ItemsPerPage = ItemsPerPage; vModel.SearchTerms = SearchTerms; return View("~/Views/GameAdmin/Race/Index.cshtml", vModel); }
public ActionResult ManageRaceData(string SearchTerms = "", int CurrentPageNumber = 1, int ItemsPerPage = 20) { var vModel = new ManageRaceDataViewModel(ReferenceWrapper.GetAll<Race>()); vModel.authedUser = UserManager.FindById(User.Identity.GetUserId()); vModel.CurrentPageNumber = CurrentPageNumber; vModel.ItemsPerPage = ItemsPerPage; vModel.SearchTerms = SearchTerms; return View(vModel); }