public async Task <IActionResult> Add(OrderInsertViewModel order)
        {
            _logger.LogDebug("INSERT order");
            var result = await _service.Add(order);

            return(Ok(result));
        }
        public async Task <OrderViewModel> Add(OrderInsertViewModel order)
        {
            var model = await _repository.Add(order.UserId, order.Products.Select(p => new OrderProduct(p.ProductId, p.Price, p.Quantity)).ToList());

            return(ConverToView(model));
        }