コード例 #1
0
        public ActionResult Post([FromBody] ProductionModel body)
        {
            if (!ModelState.IsValid)
            {
                return(BadRequest(ModelState));
            }

            ProductionModel item = _service.Create(body);

            return(CreatedAtAction("Get", new { id = item.Id }, item));
        }