예제 #1
0
        public IActionResult Edit(int id)
        {
            Boss thisBoss  = bossRepo.Bosses.FirstOrDefault(x => x.BossId == id);
            var  viewModel = new BossHeroes();

            viewModel.Boss = thisBoss;
            return(View(viewModel));
        }
예제 #2
0
        public ViewResult Create()
        {
            var viewModel = new BossHeroes();

            return(View(viewModel));
        }