Beispiel #1
0
        public async Task <IEnumerable <MetaAdaptivReconComment> > GetComments(IQueryCommentServiceRepository <MetaAdaptivReconComment> repository)
        {
            var query   = new CommentQuery();
            var handler = new CommentHandlerFactory(repository).Build(query);

            return(await handler.Get());
        }
Beispiel #2
0
 public CommentsHandler(IQueryCommentServiceRepository <MetaAdaptivReconComment> repository)
 {
     _repository = repository;
 }