I'm trying loop through a list and put the contents into a viewbag. My problem is that when I grab the viewbag in the view, it's only showing me the contents from the final iteration of the loop. Any ideas on what is happening? Here is an example:

```
var output = new List<AirportsInACity>();

foreach (var airport in cities)
{
     var temp = new AirportsInACity();

     temp.airportName = airport.name
     temp.aircraftList = new List<AirportAircraftTypeList>();

     foreach (aircraft in airport.aircraftTypes)
     {
         aircraftTemp = new AirportAircraftTypeList();
         aircraftTemp.aircraftType = aircraft.AircraftType.AircraftTypeModel;
         aircraftTemp.seats = aircraft.Seats;
         aircraftTemp.attendants = aircraft.Attendants;

         temp.aircraftList.Add(aircraftTemp);

     }

     output.Add(temp);

     var outputStats = temp.AircraftList.GroupBy(p => p.aircraftType);

     foreach (var item in outputStats)
     {
         ViewBag.AirportName = temp.name;
         ViewBag.AirportAircraftType = item.Key;
         ViewBag.AircraftSeatsSum = item.Sum(p => p.seats);
     }
 }

 ViewBag.Output = output;
 return PartialView(output);

```

Now, lets say I have this information:

`Airport Name: JFK
 Aircraft Type: Boeing777
 Total Seats: 400`

`Airport Name: ATL
 Aircraft Type: Boeing777
 Total Seats: 800`

`Airport Name: LAS
 Aircraft Type: Boeing727
 TotalSeats: 150`

The problem is that in my Viewbag, it's only grabbing the last chunk of information (the LAS airport) but the console is outputting all of the information. What could the issue be?

Here is an example of what the view looks like:

```
@foreach (var item in Viewbag.Output)
{
    <td>@(ViewBag.AirportName)</td>
    <td>@(ViewBag.AirportAircraftType)</td>
    <td>@(ViewBag.AircraftSeatsSum)</td>
}

```