public IActionResult Index() { TreaterModel model = new TreaterModel(); model.TreaterList = _TreaterRepository.GetList(); model.CandyList = _CandyRepository.GetList(); model.CostumeList = _CostumeRepository.GetList(); return(View(model)); }
public IActionResult Index() { CandyModel model = new CandyModel(); model.CandyList = _CandyRepo.GetList(); return(View(model)); }
public IActionResult Index() { CandyModel model = new CandyModel { CandyList = new List <Candy>(_candyRepo.GetList()) }; return(View(model)); }
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)); }