FrannHammer.Api.Controllers.CharacterAttributesController.PostCharacterAttribute C# (CSharp) Method

PostCharacterAttribute() private method

private PostCharacterAttribute ( CharacterAttributeDto dto ) : IHttpActionResult
dto CharacterAttributeDto
return IHttpActionResult
        public IHttpActionResult PostCharacterAttribute(CharacterAttributeDto dto)
        {
            var newDto = _metadataService.Add<CharacterAttribute, CharacterAttributeDto>(dto);
            return CreatedAtRoute("DefaultApi", new { controller = "CharacterAttributes", id = newDto.Id }, newDto);
        }