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
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"
}}
}

Sachin SinghRank #66 · 26.2K reputationPosted Jun 16, 2022, 9:27 AM EDT
AnuRank #5,208 · 307 reputationPosted Jun 16, 2022, 9:35 AM EDT
Jignesh KumarRank #91 · 22.9K reputationPosted Jun 16, 2022, 11:37 AM EDT
Jaydeep PatilRank #205 · 11.7K reputationPosted Jun 17, 2022, 3:22 AM EDT