From 035966c0d24fcbb7aae64f5ca715f3b8f6d7c09f Mon Sep 17 00:00:00 2001 From: Alexander <4nonym0us@xakep.ru> Date: Mon, 7 Dec 2015 09:46:11 +0200 Subject: [PATCH] Changed: Equals(obj, obj)->T.Equals(T) --- src/AbpODataDemo.WebApi/Controllers/AbpODataEntityController.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); }