public IActionResult Search(string q) { ViewBag.Query = q; _watch.Start(); IList <DiscussionBoard> boards = this.GetMyBoards(); boards = boards.Where(Predicates.Boards(q)) .OrderByDescending(x => x.Posts.Count) .ToList(); _watch.Stop(); ViewBag.timespan = _watch.Elapsed; _watch.Reset(); ViewBag.Notifications = this.GetNotifications(); return(View(boards)); }