public IHttpActionResult PutSmashAttributeType(int id, SmashAttributeTypeDto dto) { if (id != dto.Id) { return BadRequest(); } _smashAttributeTypesService.Update<SmashAttributeType, SmashAttributeTypeDto>(id, dto); return StatusCode(HttpStatusCode.NoContent); }