I wont to display other results according to one row:
Country>>League
HomeTeam AwayTeam Result
Italy>>Seria A
Juventus Inter [1-0]
Inter Barcelona[2-0]
Albania>>Kategoria Superiore
Tirana-Kukes [2-1]
What i have done till now displays this:
Italy>>Seria A
Juventus Inter [1-0]
Italy>>Seria A
Inter Barcelona[2-0]
Albania>>Kategoria Superiore
Tirana-Kukes [2-1]
@foreach (var item in Model)
{
<tr> <td>
@Html.DisplayFor(modelItem => item.Time)
</td> <td>
@Html.DisplayFor(modelItem => item.Country)
</td> <td>
@Html.DisplayFor(modelItem => item.League)
</td> <td>
@Html.DisplayFor(modelItem => item.Home)
</td> <td>
@Html.DisplayFor(modelItem => item.Away)
</td> <td>
@Html.ActionLink(item.Prediction, "IndexDetails", new { id = item.TeamId })
</td> <td>
@Html.DisplayFor(modelItem => item.Odds)
</td> <td>
?-?
</td> </tr>
}
</table>