public string getPostDetails(string fbUserId, Guid UserId, int days) { try { string strlocation = string.Empty; string strcount = string.Empty; string previousDate = string.Empty; FacebookInsightPostStatsRepository objfbiRepo = new FacebookInsightPostStatsRepository(); ArrayList arrList = objfbiRepo.getFacebookInsightPostStatsById(fbUserId, UserId, days); string fanpost = string.Empty; foreach (var item in arrList) { Array temp = (Array)item; fanpost = fanpost + "<div class=\"message-sent-table\" ><div class=\"labe-1\">" + temp.GetValue(3) + "</div>" + "<div class=\"labe-4\">" + temp.GetValue(4) + "</div><div class=\"labe-5\">" + temp.GetValue(5) + "</div><div class=\"labe-6\">" + temp.GetValue(6) + "</div><div class=\"labe-5\">" + temp.GetValue(5) + "</div></div>"; } return fanpost; } catch (Exception Err) { Console.Write(Err.StackTrace); return null; } }