From 29ece9168b5feaa54074727a754abb3955a28394 Mon Sep 17 00:00:00 2001 From: "ismail.taha_janan" Date: Wed, 18 Jan 2023 14:59:39 +0100 Subject: [PATCH] all customer API return code --- cat_cafe/Controllers/CustomersController.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cat_cafe/Controllers/CustomersController.cs b/cat_cafe/Controllers/CustomersController.cs index cc63bcc..e2a5b21 100644 --- a/cat_cafe/Controllers/CustomersController.cs +++ b/cat_cafe/Controllers/CustomersController.cs @@ -61,7 +61,7 @@ namespace cat_cafe.Controllers + this.Response.StatusCode.ToString() + " " + customer.GetType().ToString() + " " + JsonConvert.SerializeObject(customer).ToString()); - return _mapper.Map(customer); + return Ok(_mapper.Map(customer)); } // PUT: api/Customers/5