//[OutputCache(Duration = 45, Location = OutputCacheLocation.Client, NoStore = true)] public ActionResult TwitterUserTweet_FeedsSearch(string ProfileId, string keyword) { string datetime = Helper.Extensions.ToClientTime(DateTime.UtcNow); //string datetime = Request.Form["localtime"].ToString(); ViewBag.datetime = datetime; List<object> lstobject = new List<object>(); Dictionary<string, List<object>> dictUserTweet = new Dictionary<string, List<object>>(); Api.Groups.Groups ApiobjGroups = new Api.Groups.Groups(); Domain.Socioboard.Domain.Groups objGroups = (Domain.Socioboard.Domain.Groups)(new JavaScriptSerializer().Deserialize(ApiobjGroups.GetGroupDetailsByGroupId(Session["group"].ToString()), typeof(Domain.Socioboard.Domain.Groups))); Api.TwitterMessage.TwitterMessage ApiobjTwitterMessage = new Api.TwitterMessage.TwitterMessage(); List<Domain.Socioboard.MongoDomain.TwitterMessage> lstTwitterUsertweet = (List<Domain.Socioboard.MongoDomain.TwitterMessage>)(new JavaScriptSerializer().Deserialize(ApiobjTwitterMessage.getAllTwitterUsertweetOfUsersByKeyword(objGroups.UserId.ToString(), ProfileId, keyword), typeof(List<Domain.Socioboard.MongoDomain.TwitterMessage>))); foreach (var twitterUsertweet in lstTwitterUsertweet) { lstobject.Add(twitterUsertweet); } dictUserTweet.Add("twitter", lstobject); return PartialView("_Panel3Partial", dictUserTweet); }
public ActionResult TwitterUserTweet_FeedsSearch(string ProfileId, string keyword) { List<object> lstobject = new List<object>(); Dictionary<string, List<object>> dictUserTweet = new Dictionary<string, List<object>>(); Api.Groups.Groups ApiobjGroups = new Api.Groups.Groups(); Domain.Socioboard.Domain.Groups objGroups = (Domain.Socioboard.Domain.Groups)(new JavaScriptSerializer().Deserialize(ApiobjGroups.GetGroupDetailsByGroupId(Session["group"].ToString()), typeof(Domain.Socioboard.Domain.Groups))); Api.TwitterMessage.TwitterMessage ApiobjTwitterMessage = new Api.TwitterMessage.TwitterMessage(); List<TwitterMessage> lstTwitterUsertweet = (List<TwitterMessage>)(new JavaScriptSerializer().Deserialize(ApiobjTwitterMessage.getAllTwitterUsertweetOfUsersByKeyword(objGroups.UserId.ToString(), ProfileId, keyword), typeof(List<TwitterMessage>))); foreach (var twitterUsertweet in lstTwitterUsertweet) { lstobject.Add(twitterUsertweet); } dictUserTweet.Add("twitter", lstobject); return PartialView("_Panel3Partial", dictUserTweet); }