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)); }
public HomeController(IFavoriteGamesService favoriteGamesService, IRecentGamesService recentGamesService) { _favoriteGamesService = favoriteGamesService; _recentGamesService = recentGamesService; }