public ActionResult Employees(int?workgroup) { using (DBAgent.DBAgent agent = new DBAgent.DBAgent()) { ViewBag.employees = agent.GetEmployees(null, workgroup, null, null); ViewBag.workgroups = agent.GetWorkgroups(); } return(View()); }
public ActionResult Employees(int?workgroup) { using (DBAgent.DBAgent agent = new DBAgent.DBAgent()) { ViewBag.employees = agent.GetEmployees(null, workgroup, null, null); ViewBag.workgroups = agent.GetWorkgroups(); } return(View()); }