public IPagedList<PageTemplate> Search(PageTemplateSearchQuery query) { IQueryOver<PageTemplate, PageTemplate> queryOver = _session.QueryOver<PageTemplate>(); return queryOver.Paged(query.Page); }
public ViewResult Index(PageTemplateSearchQuery query) { ViewData["results"] = _service.Search(query); return View(query); }