예제 #1
0
        public IPagedList<PageTemplate> Search(PageTemplateSearchQuery query)
        {
            IQueryOver<PageTemplate, PageTemplate> queryOver = _session.QueryOver<PageTemplate>();

            return queryOver.Paged(query.Page);
        }
예제 #2
0
 public ViewResult Index(PageTemplateSearchQuery query)
 {
     ViewData["results"] = _service.Search(query);
     return View(query);
 }