public UserDetails GetAgentInfo(string strSupID) { UserDetails objUserDetails = new UserDetails(); SupervisorViewResponse objSupervisorViewResponse = EvaluationEngine.GetSupervisorView(strSupID); List <KPIItem> lstKPIItems = objSupervisorViewResponse.SupervisorView; 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.HeaderName = objSupervisorViewResponse.SupervisorName; objUserDetails.AgentID = lstKPIItems.Select(x => x.AgentId).ToArray(); return(objUserDetails); //CenterViewModel objCenterViewModel = new CenterViewModel(); //return objCenterViewModel.getSupervisors(strCenterID); }