Пример #1
0
 public FavoriteGamesController(IFavoriteGamesService favoriteGamesService, ILogger logger)
 {
     _favoriteGamesService = favoriteGamesService ?? throw new ArgumentNullException(nameof(favoriteGamesService));
     _logger = logger ?? throw new ArgumentNullException(nameof(logger));
     _pagedModelFactoryLazy = new Lazy <PagedModelFactory>(() => new PagedModelFactory(Request));
     _selfModelFactoryLazy  = new Lazy <SelfModelFactory>(() => new SelfModelFactory(Request));
 }
Пример #2
0
 public HomeController(IFavoriteGamesService favoriteGamesService, IRecentGamesService recentGamesService)
 {
     _favoriteGamesService = favoriteGamesService;
     _recentGamesService   = recentGamesService;
 }