@{
var i = 1;
}
@if(this.Model.Featured){
<div id="Tab-1">
<table class="Activity">
@foreach(var activity in this.Model.TranzTacho)
{
<tr class=" @i%2==1? "Gray" : "White">
<td class="Date">@activity.Date</td>
<td class="Text">@activity.Text</td>
</tr>
i++;
}
}
This is an attempt to convert to Razor.
I hope this helps you.
Please post back your queries if any.
Thanks. :)