Example #1
0
        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
            }));
        }
Example #2
0
 public ActionResult Index(AttachmentSearchParameters searchParameters)
 {
     return(View(searchParameters ?? new AttachmentSearchParameters()));
 }