FrannHammer.Api.Controllers.SmashAttributeTypesController.PutSmashAttributeType C# (CSharp) Méthode

PutSmashAttributeType() private méthode

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

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