public async Task <IActionResult> UpdateColor([FromBody] ColorViewModel colorVm)
        {
            var hasPermission = await _authorizationService.AuthorizeAsync(User, "COLOR", Operations.Update);

            if (hasPermission.Succeeded == false)
            {
                return(new BadRequestObjectResult(CommonConstants.Forbidden));
            }
            if (ModelState.IsValid)
            {
                _productQuantityService.UpdateColor(colorVm);
                _productQuantityService.SaveChanges();
                return(new OkObjectResult(colorVm.Id));
            }
            return(new BadRequestObjectResult(ModelState));
        }