Ejemplo n.º 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();
        }
Ejemplo n.º 2
0
 // GET: Games
 public async Task <IActionResult> Index()
 {
     return(View(await _gamneService.GetAllAsync()));
 }