示例#1
0
        public async Task Post(OrderUploadDto orderDto)
        {
            var order = new Order
            {
                CreatedAt = DateTimeOffset.Now,
                ProductId = orderDto.ProductId,
                Quantity  = orderDto.Quantity
            };

            await _repo.Post(order);
        }