Ejemplo n.º 1
0
        public async Task <IReadOnlyDictionary <Guid, Interview> > GetBatchInterviews(IReadOnlyList <Guid> ids)
        {
            ValidationUtil.NotEmptyCollection <Guid>(ids?.ToList());
            var query = new InterviewSearchQuery {
                Ids = ids
            };
            var interviewSearchResult = await _interviewService.SearchAsync(query);

            return(interviewSearchResult?.Interviews?.ToDictionary(x => x.Id) ?? new Dictionary <Guid, Interview>(0));
        }