public async Task <ActionResult> Index(string datasource) { var context = HttpContext.LightcoreContext(); var root = await _itemProvider.GetItemAsync(new GetItemCommand(datasource, context.Language).OnlyChildFields("title")); var languages = await _itemProvider.GetVersionsAsync(new GetVersionsCommand(datasource)); var navigation = new List <IItemDefinition>(new[] { root }); navigation.AddRange(root.Children); var model = new MenuModel { MainNavigation = navigation, LanguageNavigation = languages }; return(View("/Views/Menu/Index.cshtml", model)); }