예제 #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
 // GET: Games
 public async Task <IActionResult> Index()
 {
     return(View(await _gamneService.GetAllAsync()));
 }