public ListContainer <Document> Get(int page, int size, string term) { var result = String.IsNullOrEmpty(term) ? _documentsRepository.Get((page - 1) * size, size) : _documentsRepository.GetByTerm((page - 1) * size, size, term); return(result); }