From 42295d68dfb0e7206be972465cb0f27953c83f9b Mon Sep 17 00:00:00 2001 From: Vijay Uppu <913468@dadeschools.net> Date: Tue, 28 Nov 2023 12:07:34 -0500 Subject: [PATCH] Return Employee ID for POST --- .../Providers/EmployeesProvider.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/DamageAssesmentApi/DamageAssesment.Api.Employees/Providers/EmployeesProvider.cs b/DamageAssesmentApi/DamageAssesment.Api.Employees/Providers/EmployeesProvider.cs index b1741be..a071ab9 100644 --- a/DamageAssesmentApi/DamageAssesment.Api.Employees/Providers/EmployeesProvider.cs +++ b/DamageAssesmentApi/DamageAssesment.Api.Employees/Providers/EmployeesProvider.cs @@ -77,7 +77,8 @@ namespace DamageAssesment.Api.Employees.Providers EmployeeDbContext.Employees.Add(_employee); Employee.Id = _employee.Id; EmployeeDbContext.SaveChanges(); - return (true, Employee, null); + //return (true, Employee, null); + return (true, mapper.Map(_employee), null); } return (false, null, "Employee code is already exits"); }