Пример #1
0
        public ActionResult <Monster> GetMonster(int id)
        {
            //var monster = _context.Monsters.Find(id);
            var monster = monsterService.GetById(id);

            if (monster == null)
            {
                return(NotFound());
            }
            return(monster);
        }