public class MenuItem : NavigationItem<MenuItem>
{
public string Action { get; set; }
public string Controller { get; set; }
public string Area { get; set; }
public string Icon { get; set; }
}
INavigation<MenuItem> is the main service to get navigation. INavigation<MenuItem> created once per request within the scope.
For example, create _MenuItem.cshtml and _Menu.cshtml views.