コード例 #1
0
        public IActionResult Put(Guid id, [FromBody] ActionOutPut value)
        {
            if (id == null)
            {
                return(this.ModelStateError(nameof(id), "请填写int"));
            }

            return(NoContent());
        }
コード例 #2
0
 public IActionResult Post([FromBody] ActionOutPut input)
 {
     return(CreatedAtAction(nameof(Get), input));
 }