Ejemplo n.º 1
0
        public IActionResult Create([FromBody] Order newOrder)
        {
            if (!ModelState.IsValid)
            {
                return(BadRequest(ModelState));
            }

            var result = ordersStorageInst.CreateOrder(newOrder);

            return(Ok(result));
        }