Code
·
18 lines
·
370 bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18using Microsoft.AspNetCore.Mvc;
namespace VanDerHeijden.JsonBodyProviderTest.Controllers;
[Route("api")]
public class ItemsController : ControllerBase
{
[HttpPatch("items/{id}")]
public IActionResult PatchItem(
Guid id,
string? Title,
string? Description,
bool? Active,
int? Priority)
{
return Ok(new { id, Title, Description, Active, Priority });
}
}