Пример #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)));
        }