public async Task <IActionResult> IndexAsync() { var result = await _rentalManager.GetAllRentals(); return(View(result)); }
public Task <IEnumerable <Rental> > GetAllRentals() { return(_rentalManager.GetAllRentals()); }