Skip to content

Open-source eCommerce platform for C# and ASP.NET Core 10 with MongoDB. Build multi-store shops and multi-vendor marketplaces with B2B/B2C, REST API, plugins, Vue 3 and Docker.

API - Fix - update customer PUT - change result type

KrzysztofPajakf77cf77a8a65
diff --git a/src/API/Grand.Api/Controllers/OData/CustomerController.cs b/src/API/Grand.Api/Controllers/OData/CustomerController.cs
index e804d9243..e1c736f04 100644
--- a/src/API/Grand.Api/Controllers/OData/CustomerController.cs
+++ b/src/API/Grand.Api/Controllers/OData/CustomerController.cs
@@ -74,7 +74,7 @@ namespace Grand.Api.Controllers.OData
if (ModelState.IsValid)
{
model = await _mediator.Send(new UpdateCustomerCommand() { Model = model });
- return Updated(model);
+ return Ok(model);
}
return BadRequest(ModelState);
}