Exemplo n.º 1
0
 public Dictionary <int, DateTime> GetShowTimes(int movieID, int theatreID, DateTime date)
 {
     try
     {
         return(bookingRep.GetShowTimes(movieID, theatreID, date));
     }
     catch (Exception ex)
     {
         return(null);
     }
 }
Exemplo n.º 2
0
 public ActionResult ShowTimes(int movieID, int theatreID, DateTime date)
 {
     try
     {
         Dictionary <int, DateTime> showTimes = rep.GetShowTimes(movieID, theatreID, date);
         return(PartialView("_ShowTimes", showTimes));
     }
     catch (Exception ex)
     {
         return(View("Error"));
     }
 }