コード例 #1
0
        public RentalsController(IRentalService rentalService,
                                 IGamneService gamneService,
                                 IFriendService friendService)
        {
            _rentalService = rentalService;
            _gamneService  = gamneService;
            _friendService = friendService;

            friends = _friendService.GetAllAsync().Result.ToList();
            games   = _gamneService.GetAllAsync().Result.ToList();
        }
コード例 #2
0
 public GamesController(IGamneService gamneService)
 {
     _gamneService = gamneService;
 }