Example #1
0
        public static GroupStatDetails GetGroupStatsData(int days)
        {
            GroupStatDetails _GroupStatDetails = new GroupStatDetails();
            try
            {

                User objUser = (User)System.Web.HttpContext.Current.Session["User"];
                List<Domain.Socioboard.Domain.TeamMemberProfile> lstTeamMemberProfile = new List<Domain.Socioboard.Domain.TeamMemberProfile>();
                Api.Team.Team objApiTeam = new Api.Team.Team();
                objApiTeam.Timeout = 300000;
                string groupid = System.Web.HttpContext.Current.Session["group"].ToString();
                JObject team = JObject.Parse(objApiTeam.GetTeamByGroupId(System.Web.HttpContext.Current.Session["group"].ToString()));
                Api.TeamMemberProfile.TeamMemberProfile objApiTeamMemberProfile = new Api.TeamMemberProfile.TeamMemberProfile();
                objApiTeamMemberProfile.Timeout = 300000;
                //JArray TeamMemberProfiles = JArray.Parse(objApiTeamMemberProfile.GetTeamMemberProfilesByTeamId(Convert.ToString(team["Id"])));

                //  var asd=  objApiTeamMemberProfile.GetTeamMembeDetailsForGroupReport(Convert.ToString(team["Id"]), objUser.Id.ToString(), days.ToString());

                _GroupStatDetails = (GroupStatDetails)(new JavaScriptSerializer().Deserialize(objApiTeamMemberProfile.GetTeamMembeDetailsForGroupReport(Convert.ToString(team["Id"]), objUser.Id.ToString(), days.ToString()), typeof(GroupStatDetails)));


            }
            catch (Exception ex)
            {
                Console.WriteLine(ex.StackTrace);
            }


            return _GroupStatDetails;
        }