コード例 #1
0
        public ActionResult <CharacterDTO> GetCharacter(Guid characterId)
        {
            try
            {
                var character = repository.GetCharacter(characterId);
                if (character == null)
                {
                    return(NotFound());
                }

                return(character.AsDTO());
            }
            catch (Exception)
            {
                throw;
            }
        }