public string getNewFollowing(User user, string profileId,int days)
        {
            string strTwtFollowing = string.Empty;
            try
            {

                //SocioBoard.Domain.User user = (User)Session["LoggedUser"];
                TwitterStatsRepository objtwtStatsRepo = new TwitterStatsRepository();
                ArrayList arrTwtStats = objtwtStatsRepo.getTwitterStatsByIdDay(user.Id, profileId, days);
                string str = string.Empty;
                foreach (var item in arrTwtStats)
                {
                    Array temp = (Array)item;
                    strTwtFollowing += (temp.GetValue(3).ToString()) + ",";
                }
                if (arrTwtStats.Count < 7)
                {
                    for (int i = 0; i < 7 - arrTwtStats.Count; i++)
                    {
                        str += "0,";
                    }
                }
                strTwtFollowing = str + strTwtFollowing;
                strTwtFollowing = strTwtFollowing.Substring(0, strTwtFollowing.Length - 1);
                //  strTwtArray += "]";
            }
            catch (Exception Err)
            {
                Console.Write(Err.Message.ToString());
            }
            return strTwtFollowing;
        }
        public string getNewFollowing(string profileId, int days)
        {
            string strTwtFollowing = string.Empty;
            int strTwtFollowing1 = 0;
            int strnewTwtFollowing = 0;
            try
            {

                TwitterStatsRepository objtwtStatsRepo = new TwitterStatsRepository();
                ArrayList arrTwtStats = objtwtStatsRepo.getTwitterStatsByIdDay(profileId, days);
                ArrayList arrTwtBeforestats = objtwtStatsRepo.getTwitterStatsByIdbeforeDay(profileId, days);

                if (arrTwtBeforestats.Count == 0)
                {
                    ArrayList arrTwtBeforestat = objtwtStatsRepo.getTwitterStByIdbeforeDay(profileId,days);
                    Array temp1 = (Array)arrTwtBeforestat[0];
                    strnewTwtFollowing = Convert.ToInt16(temp1.GetValue(3));
                }
                else
                {
                    Array temp = (Array)arrTwtBeforestats[0];
                    strnewTwtFollowing = Convert.ToInt16(temp.GetValue(3));
                }

                try
                {
                    Array temp2 = (Array)arrTwtStats[0];
                    strTwtFollowing1 = Convert.ToInt16(temp2.GetValue(3));
                }
                catch (Exception Err)
                {
                    Console.Write(Err.Message.ToString());
                }


                strTwtFollowing1 = (strTwtFollowing1 - strnewTwtFollowing);
                if (strTwtFollowing1 > 0)
                {
                    strTwtFollowing1 = strTwtFollowing1;
                }
                else
                {
                    strTwtFollowing1 = 0;
                }

                strTwtFollowing = (strTwtFollowing1.ToString()) + ",";
                string str = string.Empty;
                if (arrTwtStats.Count < 7)
                {
                    for (int i = 0; i < 7 - arrTwtStats.Count; i++)
                    {
                        str += "0,";
                    }
                }
                strTwtFollowing = str + strTwtFollowing;
                strTwtFollowing = strTwtFollowing.Substring(0, strTwtFollowing.Length - 1);

            }
            catch (Exception Err)
            {
                Console.Write(Err.Message.ToString());
            }
            return strTwtFollowing;
        }