예제 #1
0
        public ActionResult Index(SpellFilterViewModel filter)
        {
            var viewModel = new SpellListViewModel()
            {
                Spells = filter.HasValues ? _spellRepo.List(filter) : _spellRepo.List()
            };

            return(View(viewModel));
        }
예제 #2
0
        public ActionResult Index()
        {
            List <Spell> spells = _spellRepo.List();

            return(View(spells));
        }