public Try <IQueryable <AnnotatedDocument> > Execute(SearchDocumentsMessage msg) { Func <IQueryable <AnnotatedDocument> > query = () => repository.Search(msg); return(Try(query)); }
public Try <long?> Execute(SearchDocumentsMessage msg) { Func <long?> query = () => repository.SearchCount( msg.WordsToSearch, msg.EntityId, msg.DocumentTypeId, msg.Number, msg.Year); return(Try(query)); }