Пример #1
0
 public CreditsQuery(ICreditsRepository repository)
 {
     _repository    = repository;
     _credits       = _repository.GetCredits();
     _creditsById   = _credits.ToDictionary(c => c.Id);
     _creditsByName = _credits.ToDictionary(c => c.Name);
     _creditsByType = _credits.ToDictionary(c => c.GetType());
 }