public int FollowerCount(string userid, string profileid, string days) { int counts = 0; int count = 0; int Totalcount = 0; Domain.Myfashion.Domain.TwitterAccountFollowers lstcount = new Domain.Myfashion.Domain.TwitterAccountFollowers(); Domain.Myfashion.Domain.TwitterAccountFollowers lstcountbefore = new Domain.Myfashion.Domain.TwitterAccountFollowers(); try { string[] arr = profileid.Split(','); foreach (var item in arr) { counts += objrepo.getAllFollower1(Guid.Parse(userid), item, Convert.ToInt32(days)); count += objrepo.getAllFollowerbeforedays1(Guid.Parse(userid), item, Convert.ToInt32(days)); } } catch (Exception ex) { Console.WriteLine(ex.StackTrace); } Totalcount = Math.Abs(counts - count); return Totalcount; }
public int FollowerCount(string userid, string profileid, string days) { int counts = 0; int count = 0; int Totalcount = 0; Domain.Myfashion.Domain.TwitterAccountFollowers lstcount = new Domain.Myfashion.Domain.TwitterAccountFollowers(); Domain.Myfashion.Domain.TwitterAccountFollowers lstcountbefore = new Domain.Myfashion.Domain.TwitterAccountFollowers(); try { string[] arr = profileid.Split(','); foreach (var item in arr) { counts += objrepo.getAllFollower1(Guid.Parse(userid), item, Convert.ToInt32(days)); count += objrepo.getAllFollowerbeforedays1(Guid.Parse(userid), item, Convert.ToInt32(days)); } } catch (Exception ex) { Console.WriteLine(ex.StackTrace); } Totalcount = Math.Abs(counts - count); return(Totalcount); }