public ActionResult Index(ScienceDetailsPage model) { var categoriesProvider = new UmbracoSciencePageCategoriesProvider(ApplicationContext.ApplicationCache.RequestCache); var service = new ScienceDetailsPageService(categoriesProvider, _navigationService); var viewModel = service.GetViewModel(model); return(CurrentTemplate(viewModel)); }
public ScienceSidebarSurfaceController() { var categoriesProvider = new UmbracoSciencePageCategoriesProvider(ApplicationContext.ApplicationCache.RequestCache); var config = SearchConfiguration.GetConfig(); _dataHubRawQueryService = new SearchService(config); _navigationItemService = new NavigationItemService(); _sidebarService = new ScienceSidebarService(_navigationItemService, _dataHubRawQueryService, categoriesProvider); }