Beispiel #1
0
 public IActionResult PutData([FromBody] Dto dto, [FromRoute] int id)
 {
     return(StatusCode(200, "UPDATED"));
 }
Beispiel #2
0
 public IActionResult PatchData([FromBody] Dto dto, [FromRoute] int id)
 {
     return(StatusCode(200, "PATCHED"));
 }
Beispiel #3
0
 public IActionResult PostData([FromBody] Dto dto)
 {
     return(Created("/data/42", "CREATED"));
 }