示例#1
0
        public ActionResult <Point> CreatePoint([FromBody] Point point)
        {
            point.Id = pointService.Add(point);

            return(CreatedAtAction(nameof(GetPoints), new { id = point.Id }, point));
        }