public dynamic getReportData(string country) { Northwind2Entities db = new Northwind2Entities(); db.Configuration.ProxyCreationEnabled = false; List <Order> orders; if (country != "ALL") { orders = db.Orders.Include(r => r.Employee).Include(a => a.Customer).Where(rr => rr.Employee.Country == country).ToList(); } else { orders = db.Orders.Include(u => u.Employee).Include(u => u.Customer).ToList(); } return(GetExpandoReport(orders)); }