Exemplo n.º 1
0
 public IEnumerable<QuickSearchResult> QuickSearch(AdminWebpageSearchQuery model)
 {
     return _documentSearcher.Search(model.GetQuery(), model.Page, 10).Select(x => new QuickSearchResult
                                                                                   {
                                                                                       id = x.Id,
                                                                                       value = x.Name,
                                                                                       url = x.AbsoluteUrl
                                                                                       //CreatedOn = x.CreatedOn.ToShortDateString().ToString(),
                                                                                       //Type = x.GetType().Name.ToString()
                                                                                   });
 }
Exemplo n.º 2
0
 public IPagedList<Webpage> Search(AdminWebpageSearchQuery model)
 {
     return _documentSearcher.Search(model.GetQuery(), model.Page);
 }