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

PutSmashAttributeType() 개인적인 메소드

private PutSmashAttributeType ( int id, SmashAttributeTypeDto dto ) : IHttpActionResult
id int
dto SmashAttributeTypeDto
리턴 IHttpActionResult
        public IHttpActionResult PutSmashAttributeType(int id, SmashAttributeTypeDto dto)
        {
            if (id != dto.Id)
            {
                return BadRequest();
            }

            _smashAttributeTypesService.Update<SmashAttributeType, SmashAttributeTypeDto>(id, dto);
            return StatusCode(HttpStatusCode.NoContent);
        }