public Dictionary <int, DateTime> GetShowTimes(int movieID, int theatreID, DateTime date) { try { return(bookingRep.GetShowTimes(movieID, theatreID, date)); } catch (Exception ex) { return(null); } }
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")); } }