コード例 #1
0
 private ExpertiseSectionViewModel GetExpertiseSection()
 {
     return(new ExpertiseSectionViewModel
     {
         Settings = SettingService.GetSettings <ExpertiseSettingsViewModel>(),
         Expertises = expertiseService.GetAll().Select(ToViewModel)
     });
 }
コード例 #2
0
        public IActionResult Index()
        {
            IndexViewModel vm = new IndexViewModel
            {
                Expertises = expertiseService.GetAll().Select(ToViewModel)
            };

            return(View(vm));
        }