From a2b6e078e21534c07942a20c0b3a5bd890b934b8 Mon Sep 17 00:00:00 2001 From: Vijay Uppu <913468@dadeschools.net> Date: Tue, 28 Nov 2023 12:05:17 -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"); }