Beispiel #1
0
        public ActionResult GetPreferredTheaters(String username)
        {
            TheaterViewModel theaterViewModel = new TheaterViewModel();

            theaterViewModel.customer = new Customer(username);
            theaterViewModel.GetPreferredTheaters();
            return(null);// View("")
        }
Beispiel #2
0
        public IActionResult PreferredTheater(String username)
        {
            TheaterViewModel theaters = new TheaterViewModel();

            theaters.userName = username;
            theaters.GetPreferredTheaters();
            return(View("~/Views/MyAccount/PreferredTheater.cshtml", theaters));
        }
Beispiel #3
0
        public ActionResult SearchForTheaters(String userName, String movieName, String errorText)//The asterisk in String* allows errorText to be null
        {
            TheaterViewModel theaterViewModel = new TheaterViewModel();

            theaterViewModel.customer = new Customer();
            theaterViewModel.userName = userName;
            theaterViewModel.GetPreferredTheaters();
            theaterViewModel.movieName = movieName;
            return(View("~/Views/Theater/SearchForTheaters.cshtml", theaterViewModel));
        }