AI, Serverless, AWS, Engineering, Software Development.
System.Collections.Generic; using System.Linq; namespace YourNamespace.Controllers { [Route("api/orders")] [ApiController] public class OrderController : ControllerBase { [HttpPost] public IActionResult CreateOrder([FromBody] OrderDto order) { if (order.OrderLines.Sum(ol => ol.Quantity) <= 0 ||