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

            return(View(vm));
        }