public async Task <ApiRequestResult> UpdateAsync(ProductAttributeDto dto)
        {
            var entity = await _productAttributeRepository.GetAsync(dto.Id.Value);

            var newEntity = dto.EntityMap(entity);
            await _productAttributeRepository.UpdateAsync(newEntity);

            return(ApiRequestResult.Success("修改成功"));
        }
 public async Task <bool> UpdateAsync(ProductAttributeModifyRequest request)
 {
     return(await _productAttributeRepository.UpdateAsync(request));;
 }