예제 #1
0
        public async Task <IActionResult> GetMonsterAsync([FromHeader] string monsterName)
        {
            var monster = _monsterService.GetMonsterbyName(monsterName);

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

            return(Ok((monster)));
        }