public IPagedList<Webpage> Search(WebpageSearchQuery searchQuery)
        {
            var query = _session.QueryOver<Webpage>().Where(x => x.Parent.Id == searchQuery.ParentId);

            if (!string.IsNullOrWhiteSpace(searchQuery.Query))
            {
                query = query.Where(x => x.Name.IsInsensitiveLike(searchQuery.Query, MatchMode.Anywhere));
            }

            return query.Paged(searchQuery.Page);
        }
 public PartialViewResult Results(WebpageSearchQuery searchQuery)
 {
     ViewData["results"] = _webpageAdminSearchService.Search(searchQuery);
     return PartialView(searchQuery);
 }
 public ViewResult Search(WebpageSearchQuery searchQuery)
 {
     return View(searchQuery);
 }