Posted on: 2/21/2014 9:40:58 PM | Views : 702

Hi
I am using MVC 4 in ASP.Net to display data in a table using the Rasor Engine. It is a nested table where the outer table shows the team name, and the inner table the team members with the data.
The problem I am getting is displaying the actual data in the inner table. It is not showing the correct data under each column for each team member. I have given the full razor code, but it is the last foreach loop that is failing. ShiftDay contains all of the data about a shift for each day.
Can someone please help get the data under the relevant headings
@foreach (var shift in team.TeamMembers.Select(b=>b.ShiftDay))
{   var shiftName = shift.Select(b=>v.ShiftName).FirstOrDefault()
   var shiftStart = shift.Select(b=>b.StartTime).FirstOrDefault()
}
<td>
    @shiftName
   @shiftStart
</td>
Above is the relevant code to ...

Go to the complete details ...