diff --git a/src/AbpODataDemo.WebApi/Controllers/AbpODataEntityController.cs b/src/AbpODataDemo.WebApi/Controllers/AbpODataEntityController.cs index 112236a..73754d1 100644 --- a/src/AbpODataDemo.WebApi/Controllers/AbpODataEntityController.cs +++ b/src/AbpODataDemo.WebApi/Controllers/AbpODataEntityController.cs @@ -94,7 +94,7 @@ public async Task Put([FromODataUri] TPrimaryKey key, TEntity return BadRequest(ModelState); } - if (!Equals(key, update.Id)) + if (!key.Equals(update.Id)) { return BadRequest(); }