示例#1
0
 public IActionResult Post([FromBody] Item item)
 {
     _itemDao.Add(item);
     return(new CreatedResult($"/api/items/{item.Id}", item));
 }