//[OutputCache(Duration = 45, Location = OutputCacheLocation.Client, NoStore = true)] public ActionResult TwitterMentions_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>> dictMentions = 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> lstTwitterMentions = (List<Domain.Socioboard.MongoDomain.TwitterMessage>)(new JavaScriptSerializer().Deserialize(ApiobjTwitterMessage.getAllTwitterMentionsOfUsersByKeyword(objGroups.UserId.ToString(), ProfileId, keyword), typeof(List<Domain.Socioboard.MongoDomain.TwitterMessage>))); foreach (var twitterMentions in lstTwitterMentions) { lstobject.Add(twitterMentions); } dictMentions.Add("twitter", lstobject); return PartialView("_Panel3Partial", dictMentions); }
public ActionResult TwitterMentions_FeedsSearch(string ProfileId, string keyword) { List<object> lstobject = new List<object>(); Dictionary<string, List<object>> dictMentions = 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> lstTwitterMentions = (List<TwitterMessage>)(new JavaScriptSerializer().Deserialize(ApiobjTwitterMessage.getAllTwitterMentionsOfUsersByKeyword(objGroups.UserId.ToString(), ProfileId, keyword), typeof(List<TwitterMessage>))); foreach (var twitterMentions in lstTwitterMentions) { lstobject.Add(twitterMentions); } dictMentions.Add("twitter", lstobject); return PartialView("_Panel3Partial", dictMentions); }