// GET: Schedule public async Task<ActionResult> Index(DateTime? date) { var d = date ?? DateTime.Today.AddSeconds(1); var model = new ShowtimesList { Date = d, Showtimes = await unitOfWork.Showtimes.GetAllByDateAsync(d) }; return View(model); }
// GET: Schedule public async Task <ActionResult> Index(DateTime?date) { var d = date ?? DateTime.Today.AddSeconds(1); var model = new ShowtimesList { Date = d, Showtimes = await unitOfWork.Showtimes.GetAllByDateAsync(d) }; return(View(model)); }