public IActionResult Put(int id, [FromBody] ProductViewModel value)
        {
            if (!ModelState.IsValid)
            {
                return(BadRequest(ModelState));
            }

            try
            {
                _shoppingCartAppService.AddItemToCart(value.CartNumber, id);
            }
            catch (DbUpdateConcurrencyException)
            {
                if (!_shoppingCartAppService.GetAll().Any(x => x.Number == id))
                {
                    return(NotFound());
                }
                else
                {
                    throw;
                }
            }

            return(NoContent());
        }
        public IHttpActionResult PutShoppingCartViewModel(int id, ProductViewModel productViewModel)
        {
            if (!ModelState.IsValid)
            {
                return(BadRequest(ModelState));
            }

            try
            {
                _shoppingCartAppService.AddItemToCart(productViewModel.CartNumber, id);
            }
            catch (DbUpdateConcurrencyException)
            {
                if (!_shoppingCartAppService.Search(x => x.Number == id).Any())
                {
                    return(NotFound());
                }
                else
                {
                    throw;
                }
            }

            return(StatusCode(HttpStatusCode.NoContent));
        }