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