예제 #1
0
        public async Task <IActionResult> Index()
        {
            var productions = await _productionRepository.GetAllAsync();

            var model = new HomeProductionViewModel()
            {
                Last3Productions = await _productionRepository.GetLast3Production(),
                Productions      = productions
            };

            return(View(model));
        }