foreach (var r in Model) { var stationName = ""; if (r.stationName != stationName) { <tr class="row-2 even"> <td class="Cell2">@r.stationName</td> <td class="Cell2 kara">@if (r.cityId == 1) {@r.contactNo}</td> <td class="Cell2 lhr">@if (r.cityId == 2) {@r.contactNo}</td> <td class="Cell2 isl">@if (r.cityId == 3) {@r.contactNo}</td> <td class="Cell2 psh">@if (r.cityId == 4) {@r.contactNo}</td> <td class="Cell2 qut">@if (r.cityId == 5) {@r.contactNo}</td> <td class="Cell2 fas">@if (r.cityId == 6) {@r.contactNo}</td> </tr> } else { <td></td> } stationName = r.stationName; } }
@foreach (var r in Model)
foreach (var r in Model) { var stationName = ""; <tr class="row-2 even"> if (r.stationName != stationName) { <td class="Cell2">@r.stationName</td> } else { <td></td> } </tr>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)