public ActionResult MyEmployeeDashboard() { DataTable EmployeeNames = new QueryStrings().GetUserNames(); var data = from dt in EmployeeNames.AsEnumerable() select dt.Field <string>("users"); ViewBag.Names = data.ToList(); return(View()); }