示例#1
0
 // GET: Hindi
 public async Task <IActionResult> Index()
 {
     return(View(Movielibrarian.GetAllMoviesByLanguage(TypeOfLanguages.Hindi)));
 }
示例#2
0
        public async Task <IActionResult> Buy(int id)
        {
            Movielibrarian.BuyMovie(id);

            return(RedirectToAction(nameof(MovieRentalBuy)));
        }
示例#3
0
        //GET
        public async Task <IActionResult> MovieRentalBuy()

        {
            return(View(Movielibrarian.GetAllMoviesByRentalType(TypesOfRental.Buy, TypeOfLanguages.Hindi)));
        }
示例#4
0
        public async Task <IActionResult> Rent(int id)
        {
            Movielibrarian.RentMovie(id);

            return(RedirectToAction(nameof(MovieRental)));
        }