예제 #1
0
        public IActionResult Index(int id)
        {
            var time = _timeService.GetAll();

            var listingResult = time
                                .Select(t => new TimeListingModel
            {
                Id    = t.Id,
                Start = t.Start,
                End   = t.End
            });
            var model = new TimeIndexModel()
            {
                TimeListing = listingResult
            };

            return(View(model));
        }