/// <summary>
        /// Route hijacks requests for pages based on the document type UmbNewsItem, builds the view model and passes to the view
        /// </summary>
        /// <param name="p">Page number for news list</param>
        /// <returns></returns>
        public ActionResult UmbNewsOverview(int p = 1)
        {
            const int PageSize = 2;
            var       vm       = ViewModelBuilder.BuildPage <NewsOverviewPageViewModel, PagingDetail>(CurrentPage, new PagingDetail(p, PageSize));

            return(View(vm));
        }
Beispiel #2
0
        /// <summary>
        /// Route hijacks requests for pages based on the document type UmbHomePage, builds the view model and passes to the view
        /// </summary>
        public ActionResult UmbHomePage()
        {
            var vm = ViewModelBuilder.BuildPage <HomePageViewModel>(CurrentPage);

            return(View(vm));
        }
Beispiel #3
0
        /// <summary>
        /// Route hijacks requests for pages based on the document type UmbNewsItem, builds the view model and passes to the view
        /// </summary>
        public ActionResult UmbNewsItem()
        {
            var vm = ViewModelBuilder.BuildPage <NewsItemPageViewModel>(CurrentPage);

            return(View(vm));
        }