// GET: Hindi public async Task <IActionResult> Index() { return(View(Movielibrarian.GetAllMoviesByLanguage(TypeOfLanguages.Hindi))); }
public async Task <IActionResult> Buy(int id) { Movielibrarian.BuyMovie(id); return(RedirectToAction(nameof(MovieRentalBuy))); }
//GET public async Task <IActionResult> MovieRentalBuy() { return(View(Movielibrarian.GetAllMoviesByRentalType(TypesOfRental.Buy, TypeOfLanguages.Hindi))); }
public async Task <IActionResult> Rent(int id) { Movielibrarian.RentMovie(id); return(RedirectToAction(nameof(MovieRental))); }