public OrderResponse CreateOrder([FromBody] OrderRequest request)
        {
            // for (int i = 0; i < request.ProductsList.Count; i++)
            // {
            //     request.ProductsList[i] = _productDomainService
            //         .GetProductById(request.ProductsList[i].Id);
            // }
            var model = request.MapFromRequest();

            return(_orderDomainService.CreateOrder(model).MapToResponse());
        }
        public OrderResponse UpdateOrder(Guid id, [FromBody] OrderRequest request)
        {
            var model = request.MapFromRequest();

            return(_orderDomainService.UpdateOrder(id, model).MapToResponse());
        }