Ejemplo n.º 1
0
        public ActionResult PostAttack(long id, Attack attack)
        {
            Character character = _characterManager.Get(id);

            if (character == null)
            {
                return(NotFound());
            }
            character = _characterManager.Attack(character, attack);
            return(CreatedAtAction(nameof(GetCharacter), new { id = character.Id }, character));
        }