public UserDetails GetSupervisorInfo(string strCenterID) { UserDetails objUserDetails = new UserDetails(); List <KPIItem> lstKPIItems = EvaluationEngine.GetCenterKPI(strCenterID); objUserDetails.UserName = lstKPIItems.Select(x => x.AgentName).ToArray(); objUserDetails.UserScore = lstKPIItems.Select(x => x.Score).ToArray(); objUserDetails.TopKPIs = lstKPIItems.Select(x => x.TopKPI).ToArray(); objUserDetails.BottomKPIs = lstKPIItems.Select(x => x.BottomKPI).ToArray(); objUserDetails.AgentID = lstKPIItems.Select(x => x.AgentId).ToArray(); return(objUserDetails); //CenterViewModel objCenterViewModel = new CenterViewModel(); //return objCenterViewModel.getSupervisors(strCenterID); }