public ActionResult clockIn(int id) { Dictionary <string, object> model = new Dictionary <string, object>(); Employee foundEmployee = Employee.Find(id); Hour clockInHour = new Hour(foundEmployee.id); clockInHour.ClockIn(foundEmployee.id); model.Add("foundEmployee", foundEmployee); model.Add("clockInHour", clockInHour); return(RedirectToAction("Details", "Employee", new { employeeId = foundEmployee.id })); }