public ActionResult Vacancyoverview() { var model = ModelLogic.CreateMasterModel() as MasterModel <Vacancyoverview>; model.Content.Container = GetContainer(); return(CurrentTemplate(model)); }
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)); }
public ActionResult Contact() { var masterModel = ModelLogic.CreateMasterModel(); return(CurrentTemplate(masterModel)); }
public ActionResult Home() { var model = ModelLogic.CreateMasterModel() as MasterModel <Home>; return(CurrentTemplate(model)); }