Ejemplo n.º 1
0
        public async Task <IActionResult> IndexAsync()
        {
            var result = await _rentalManager.GetAllRentals();

            return(View(result));
        }
Ejemplo n.º 2
0
 public Task <IEnumerable <Rental> > GetAllRentals()
 {
     return(_rentalManager.GetAllRentals());
 }