public ActionResult <string> Get(int id) { var ball = new GolfBallDto { Number = 1, Brand = "Titleist" }; return(new OkObjectResult(ball)); }
public IActionResult Put(int id, [FromBody] GolfBallDto ball) { return(new NoContentResult()); }
public IActionResult Post([FromBody] GolfBallDto ball) { return(new OkObjectResult(ball)); }