FrannHammer.Api.Controllers.SmashAttributeTypesController.PostSmashAttributeType C# (CSharp) 메소드

PostSmashAttributeType() 개인적인 메소드

private PostSmashAttributeType ( SmashAttributeTypeDto dto ) : IHttpActionResult
dto SmashAttributeTypeDto
리턴 IHttpActionResult
        public IHttpActionResult PostSmashAttributeType(SmashAttributeTypeDto dto)
        {
            var newDto = _smashAttributeTypesService.Add<SmashAttributeType, SmashAttributeTypeDto>(dto);
            return CreatedAtRoute("DefaultApi", new { controller = "SmashAttributeTypes", id = newDto.Id }, newDto);
        }