public ActionResult Wages(DateTime?startDate, DateTime?endDate) { using (DBAgent.DBAgent agent = new DBAgent.DBAgent()) { ViewBag.wages = agent.GetWageReport(startDate, endDate); } return(View()); }