public IActionResult Index() { log.LogInformation("Hello, world!"); log.LogInformation("Indexx"); var allPluginDatas = provider.GetAllDatasFromPlugins() .Select(s => new PluginItem() { PluginId = s.PluginId, PluginValue = s.PluginValue }) .ToList(); List <SupplementlerMenuModel> menuItems = GetMenuItems(allPluginDatas); List <SupplementlerWidgetModel> widgetItems = GetWidgetItems(allPluginDatas); var model = new IndexViewModel() { MenuList = menuItems, WidgetList = widgetItems }; return(View(model)); }