public int FacebookFans(string userid, string profileid, string days)
       {
           int counts = 0;
           int count = 0;
           int Totalcount = 0;
           Domain.Myfashion.Domain.FacebookFanPage lstFacebookFanPage = new Domain.Myfashion.Domain.FacebookFanPage();
           Domain.Myfashion.Domain.FacebookFanPage lstFacebookFancount = new Domain.Myfashion.Domain.FacebookFanPage();
           try
           {
               string[] arr = profileid.Split(',');
               foreach (var item in arr)
               {
                   counts += objrepo.getAllFancountDetail(Guid.Parse(userid), item, Convert.ToInt32(days));
                   count += objrepo.getAllFancountDetailbeforedays(Guid.Parse(userid), item, Convert.ToInt32(days));
               }                     
           }             
           catch (Exception ex)
           {
               Console.WriteLine(ex.StackTrace);
           }
           Totalcount = Math.Abs(counts - count);
           return Totalcount;
 
       }
Exemplo n.º 2
0
        public int FacebookFans(string userid, string profileid, string days)
        {
            int counts     = 0;
            int count      = 0;
            int Totalcount = 0;

            Domain.Myfashion.Domain.FacebookFanPage lstFacebookFanPage  = new Domain.Myfashion.Domain.FacebookFanPage();
            Domain.Myfashion.Domain.FacebookFanPage lstFacebookFancount = new Domain.Myfashion.Domain.FacebookFanPage();
            try
            {
                string[] arr = profileid.Split(',');
                foreach (var item in arr)
                {
                    counts += objrepo.getAllFancountDetail(Guid.Parse(userid), item, Convert.ToInt32(days));
                    count  += objrepo.getAllFancountDetailbeforedays(Guid.Parse(userid), item, Convert.ToInt32(days));
                }
            }
            catch (Exception ex)
            {
                Console.WriteLine(ex.StackTrace);
            }
            Totalcount = Math.Abs(counts - count);
            return(Totalcount);
        }