コード例 #1
0
        public ActionResult Vacancyoverview()
        {
            var model = ModelLogic.CreateMasterModel() as MasterModel <Vacancyoverview>;

            model.Content.Container = GetContainer();

            return(CurrentTemplate(model));
        }
コード例 #2
0
        public ActionResult Home()
        {
            var model = ModelLogic.CreateMasterModel() as MasterModel <Home>;

            model.Content.LatestNewsItem = NewsLogic.GetLatestNewsitem();

            return(CurrentTemplate(model));
        }
        public ActionResult Newsoverview()
        {
            var model = ModelLogic.CreateMasterModel() as MasterModel <Newsoverview>;

            var newsItems = NewsLogic.GetNewsitems(CurrentPage);
            var pager     = Umbraco.GetPager(5, newsItems.Count());

            //Only put the paged items in the list.
            model.Content.NewsItems = newsItems.Skip((pager.CurrentPage - 1) * pager.ItemsPerPage).Take(pager.ItemsPerPage).ToList();
            model.Content.Pager     = pager;

            return(CurrentTemplate(model));
        }
        public override ActionResult Index(RenderModel model)
        {
            var masterModel = ModelLogic.CreateMasterModel();

            return(CurrentTemplate(masterModel));
        }
コード例 #5
0
        public ActionResult Contact()
        {
            var masterModel = ModelLogic.CreateMasterModel();

            return(CurrentTemplate(masterModel));
        }
コード例 #6
0
        public ActionResult Home()
        {
            var model = ModelLogic.CreateMasterModel() as MasterModel <Home>;

            return(CurrentTemplate(model));
        }