Beispiel #1
0
        public ActionResult <Order> Post([FromBody] Order orderParam)
        {
            var order = new Order(orderParam.Customer, orderParam.Cart);

            _orderCtx.Add(order);
            return(Ok(order));
        }