Пример #1
0
        public IActionResult CharacterDetail(int id)
        {
            CharacterSqlDAL dal       = new CharacterSqlDAL();
            CharacterModel  character = dal.GetCharacter(id);

            return(View(character));
        }
Пример #2
0
        public IActionResult CharacterView()
        {
            CharacterSqlDAL dal = new CharacterSqlDAL();

            return(View(dal.GetAllCharacters()));
        }