public async Task <IViewComponentResult> InvokeAsync() { var userName = this.User.Identity.Name; var user = await _userManager.FindByNameAsync(userName); var roles = await this._userManager.GetRolesAsync(user); var items = await _menuService.NavDataSource(roles.ToArray()); //NavigationModel.Full; return(View(new SmartNavigation(items))); }