This is my code get subcatgeory Name in list it's working fie.But i have face a problem showing duplicate value in list
For e.g. Subcategory name Drills -Drills show 5 time . I want to show only once .
@{ int counter = 0;
foreach (var item in @Model)
{
if (counter == 0)
{
}
else
{
}
counter = counter + 1;
}
}

Jenith ThakkarRank #789 · 2.9K reputationPosted Oct 11, 2020, 8:47 PM EDT
Sachin SinghRank #66 · 26.2K reputationPosted Oct 9, 2020, 11:11 PM EDT
Jignesh KumarRank #91 · 22.9K reputationPosted Oct 10, 2020, 5:45 AM EDT