public ActionResult AttachmentsQuickSearch(AttachmentSearchParameters searchParameters) { var query = new SearchAttachments(searchParameters); var results = Query(query); FlattenTextExtract(results); return(Json(new { Items = results, Skipped = searchParameters.Skip, TotalResults = query.Stats.TotalResults })); }
public ActionResult Index(AttachmentSearchParameters searchParameters) { return(View(searchParameters ?? new AttachmentSearchParameters())); }