public async Task <IHttpActionResult> Update([FromBody] ProductAttributeDTO ProductAttributeDto)
        {
            if (!ModelState.IsValid)
            {
                return(BadRequest(ModelState));
            }
            var entity = await ProductAttributeService.FindOneAsync(ProductAttributeDto.Id);

            entity            = ProductAttributeDto.ToEntity(entity);
            entity.LastUserId = User.Identity.GetUserId();
            entity.LastTime   = DateTime.Now;
            await ProductAttributeService.UpdateAsync(entity);

            return(Ok(entity.ToModel()));
        }