예제 #1
0
        // 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);
        }
예제 #2
0
        // 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));
        }