private ServiceSectionViewModel GetServiceSection() { return(new ServiceSectionViewModel { Settings = SettingService.GetSettings <ServiceSettingsViewModel>(), Services = servicesService.GetAll().Select(ToViewModel) }); }
public IActionResult Index() { IndexViewModel vm = new IndexViewModel { MainServices = mainServicesService.GetAll().Select(ToViewModel) }; return(View(vm)); }