Hello,
I want to read data from database and store it into a list inside another list. like menu and submenu as below. Can some one please help to find a way to resolve it?
IEnumerable<MenuItem> MainMenu = new[] { new MenuItem {
id=1, text = "Video Players", items = new[] { new MenuItem {
id=1, text = "HD Video Player" }, new MenuItem {
id=2, text = "SuperHD Video Player" } } }, new MenuItem {
id=2, text = "Televisions", items = new[] { new MenuItem {
id=1, text = "SuperLCD 42" }, new MenuItem {
id=2, text = "SuperLED 42" }, new MenuItem {
id=3, text = "SuperLED 50" }}
}