From a6911b9b19e1c06b969fe47ba49f69268a817189 Mon Sep 17 00:00:00 2001 From: eduaguiar281 Date: Thu, 8 Aug 2019 16:45:38 -0300 Subject: [PATCH] Update CustomersController.cs By adding the client address in the "Addresses" property the item was not being added to the collection. We notice that this Customer class property is read only but it has a "CustomerAddressMappings" method where we can add items to the collection. --- Nop.Plugin.Api/Controllers/CustomersController.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Nop.Plugin.Api/Controllers/CustomersController.cs b/Nop.Plugin.Api/Controllers/CustomersController.cs index 0b9a81c..fd0c8bd 100644 --- a/Nop.Plugin.Api/Controllers/CustomersController.cs +++ b/Nop.Plugin.Api/Controllers/CustomersController.cs @@ -253,7 +253,8 @@ public IActionResult CreateCustomer([ModelBinder(typeof(JsonModelBinder