public IActionResult Index()
        {
            TreaterModel model = new TreaterModel();

            model.TreaterList = _TreaterRepository.GetList();
            model.CandyList   = _CandyRepository.GetList();
            model.CostumeList = _CostumeRepository.GetList();
            return(View(model));
        }
Esempio n. 2
0
        public IActionResult Index()
        {
            ViewBag.TreaterSettings = _Settings;
            TreaterModel model = new TreaterModel
            {
                CandyList   = new List <Candy>(_candyRepo.GetList()),
                CostumeList = new List <Costume>(_costumeRepo.GetList()),
                TreaterList = new List <Treater>(_treaterRepo.GetList())
            };

            return(View(model));
        }