private ExpertiseSectionViewModel GetExpertiseSection() { return(new ExpertiseSectionViewModel { Settings = SettingService.GetSettings <ExpertiseSettingsViewModel>(), Expertises = expertiseService.GetAll().Select(ToViewModel) }); }
public IActionResult Index() { IndexViewModel vm = new IndexViewModel { Expertises = expertiseService.GetAll().Select(ToViewModel) }; return(View(vm)); }