My project tracks vacation hours used per employee. I would like to display the Sum of hours used above the foreach result. The vacation index retireves the data for the selected employee.

Model 1

```
public class Employee
    {
        public int EmployeeID { get; set; }
        public string LastName { get; set; }
        public string FirstMidName { get; set; }

  public virtual ICollection<Vacation> Vacation { get; set; }
  }

```

Model 2

```
public class Vacation
    {
        public int VacationID { get; set; }
        public int EmployeeID { get; set; }
        [DataType(DataType.Date)]
        public DateTime EventDate { get; set; }
        public int Hours { get; set; }

        public virtual Employee Employee { get; set; }
}

```

Controller for Model 2

```
public class VacationController : Controller
    {
        private Context db = new Context();

        //
        // GET: /Vacation/

        public ActionResult Index([Bind(Prefix = "id")]int employeeId)
        {
            var Employee = db.Employee.Find(employeeId);
            if (Employee != null)
            {
                return View(Employee);
            }
            return HttpNotFound();
        }

```

View

```
<table>

@foreach (var item in Model) {
    <tr>
        <td>
            @Html.DisplayFor(modelItem => item.Employee.LastName)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.EventDate)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Hours)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Notes)
        </td>
          </tr>
}

</table>

```