public ActionResult Index(IFramePage model) { var viewModel = _iframePageService.GetViewModel(model, Request.Url); var provider = new UmbracoScienceDetailsPageProvider(Umbraco, ApplicationContext.ApplicationCache.RequestCache); return(CurrentTemplate(viewModel)); }
public ActionResult Index(ScienceCategoryPage model) { var provider = new UmbracoScienceDetailsPageProvider(Umbraco, ApplicationContext.ApplicationCache.RequestCache); var service = new ScienceCategoryPageService(provider); var viewModel = service.GetViewModel(model); return(CurrentTemplate(viewModel)); }