I have a list of c# model coming in from my C# Rest Api. The front end shoould have a row with 3 columns the next set of three and so on.
How can I do that. I have tried this but it doesnt display the other data.
@{ var i = 0; }
@foreach (var employee in Model.Employees)
{
@{ i++; }
<a href="#">@employee.Name</a>
@if(i%3 == 2)
{
<br/>
}
}