public ActionResult GetTrendingNotifications() { return(Json(GetHashtagsProc.GetTrendAndNotification(CurrentUser.Id, 10, true), JsonRequestBehavior.AllowGet)); }
public ActionResult GetHashTags(string query, bool isHandle = false) { var tag = isHandle ? query.TrimStart('@') : query.TrimStart('#'); return(Json(GetHashtagsProc.Run(string.Format("%{0}%", tag), isHandle).Select(t => t.Name).ToArray(), JsonRequestBehavior.AllowGet)); }