public RentalsController(IRentalService rentalService, IGamneService gamneService, IFriendService friendService) { _rentalService = rentalService; _gamneService = gamneService; _friendService = friendService; friends = _friendService.GetAllAsync().Result.ToList(); games = _gamneService.GetAllAsync().Result.ToList(); }
public GamesController(IGamneService gamneService) { _gamneService = gamneService; }