Esempio n. 1
0
 public List <bookMySeat.Theatre> GetTheatres(int movieID, DateTime date)
 {
     try
     {
         return(bookingRep.GetTheatres(movieID, date));
     }
     catch (Exception ex)
     {
         return(null);
     }
 }
        public ActionResult DisplayTheatres(int movieID, string movieName, DateTime date)
        {
            try
            {
                Session["MovieName"] = movieName;
                ViewBag.MovieID      = movieID;

                var theatres = Mapper.Map <List <bookMySeat.Theatre>, List <Models.Theatre> >(rep.GetTheatres(movieID, date));

                return(View(theatres));
            }
            catch (Exception ex)
            {
                return(View("Error"));
            }
        }