public IActionResult GetAllCartItems()
        {
            try
            {
                var items = _repository.GetAllCartItems();
                return(Ok(Mapper.Map <IEnumerable <CartItemViewModel> >(items)));
            }

            catch (Exception ex)
            {
                _logger.LogError("Failed to load cart items: {0}", ex);
            }
            return(BadRequest("Failed to load cart items"));
        }