public void GetFollowersAgeWise(int days)
        {
            try
            {
                SocioBoard.Domain.User user = (User)Session["LoggedUser"];
                TwitterStatsRepository objtwtStatsRepo = new TwitterStatsRepository();
                object arrTwtStats = objtwtStatsRepo.getFollowersAgeCount(user.Id,days);
                if (arrTwtStats != null)
                {
                    string[] arr = ((IEnumerable)arrTwtStats).Cast<object>().Select(x => x.ToString()).ToArray();

                    for (int i = 0; i < arr.Count(); i++)
                    {
                        strTwtAgeArray += arr[i] + ",";
                    }
                    strTwtAgeArray = "[" + strTwtAgeArray.Substring(0, strTwtAgeArray.Length - 1) + "]";
                }
                else
                {
                    strTwtAgeArray = "[0,0,0,0,0,0,0]";
                }
                //strTwtArray += "]";
            }
            catch (Exception Err)
            {
                strTwtAgeArray = "[0,0,0,0,0,0,0]";
              //  Response.Write(Err.Message.ToString());
            }
        }
 public string GetFollowersAgeWise(User user,int days)
 {
     string strTwtAgeArray = string.Empty;
     try
     {
         TwitterStatsRepository objtwtStatsRepo = new TwitterStatsRepository();
         object arrTwtStats = objtwtStatsRepo.getFollowersAgeCount(user.Id,days);
         string[] arr = ((IEnumerable)arrTwtStats).Cast<object>().Select(x => x.ToString()).ToArray();
         strTwtAgeArray="0,";
         for (int i = 0; i < arr.Count(); i++)
         {
             strTwtAgeArray += arr[i] + ",";
         }
         strTwtAgeArray = strTwtAgeArray.Substring(0, strTwtAgeArray.Length - 1) ;
         //strTwtArray += "]";
     }
     catch (Exception Err)
     {
         Console.Write(Err.Message.ToString());
     }
     return strTwtAgeArray;
 }