Example #1
0
 public ActionResult GetTrendingNotifications()
 {
     return(Json(GetHashtagsProc.GetTrendAndNotification(CurrentUser.Id, 10, true), JsonRequestBehavior.AllowGet));
 }
Example #2
0
        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));
        }