FrannHammer.Api.Controllers.SmashAttributeTypesController.PutSmashAttributeType C# (CSharp) Method

PutSmashAttributeType() private method

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

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