All this should be part of excercise 3, the implementation of the service.
GetNextFreeSeat could look like this:
Code:
private void GetNextFreeSeat(out int row, out int seat)
{
row = -1;
seat = -1;
for (int r = 0; r < maxRows; r++)
{
for (int s = 0; s < maxSeats; s++)
{
if (!this.reservedSeats[r, s])
{
row = r;
seat = s;
return;
}
}
}
}
Hope this helps.