public ActionResult <CharacterDTO> GetCharacter(Guid characterId) { try { var character = repository.GetCharacter(characterId); if (character == null) { return(NotFound()); } return(character.AsDTO()); } catch (Exception) { throw; } }