[HttpPatch("{id:int}")]
public async TaskUpdatePartialAsync(int id, [FromBody] JsonPatchDocument patchEntity)
{
var entity = await _service.ReadAsync(id, false);
if (entity == null)
return NotFound();
try
{
patchEntity.ApplyTo(entity, ModelState);
}
catch(Exception ex)
{
return Ok(ex.Message);
}
entity = await \_service.UpdateAsync(id, entity);
return Ok(entity);
}
When accessing this in PostMan, the return is an error, patchEntity has one Operation with all values being null. Any ideas?