예제 #1
0
        public async Task <IDictionary <string, ContentPage> > LookupByHandleAsync(IEnumerable <string> handles, string languageCode)
        {
            var result = await _contentPageService.GetByHandleAsync(handles.ToList(), languageCode);

            return(result.ToDictionary(x => x.Handles
                                       .FirstOrDefault(ls => ls.LanguageCode == languageCode)?.Value));
        }