示例#1
0
        public Try <IQueryable <AnnotatedDocument> > Execute(SearchDocumentsMessage msg)
        {
            Func <IQueryable <AnnotatedDocument> > query = () =>
                                                           repository.Search(msg);

            return(Try(query));
        }
示例#2
0
        public Try <long?> Execute(SearchDocumentsMessage msg)
        {
            Func <long?> query = () =>
                                 repository.SearchCount(
                msg.WordsToSearch,
                msg.EntityId,
                msg.DocumentTypeId,
                msg.Number,
                msg.Year);

            return(Try(query));
        }