From 313955221737131d35b9fa831a193da6f2c148a1 Mon Sep 17 00:00:00 2001 From: SamSys Date: Mon, 29 Dec 2025 13:41:23 +0330 Subject: [PATCH] Change Method name --- Company.Domain/EmployeeAgg/IEmployeeRepository.cs | 2 +- .../Employee/IEmployeeApplication.cs | 2 +- CompanyManagment.Application/EmployeeAplication.cs | 4 ++-- CompanyManagment.EFCore/Repository/EmployeeRepository .cs | 2 +- ServiceHost/Areas/Client/Controllers/EmployeeController.cs | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Company.Domain/EmployeeAgg/IEmployeeRepository.cs b/Company.Domain/EmployeeAgg/IEmployeeRepository.cs index e18463a0..7ab427d8 100644 --- a/Company.Domain/EmployeeAgg/IEmployeeRepository.cs +++ b/Company.Domain/EmployeeAgg/IEmployeeRepository.cs @@ -85,7 +85,7 @@ public interface IEmployeeRepository : IRepository /// /// /// - Task> ListOfAllEmployees(EmployeeSearchModelDto searchModel, long workshopId); + Task> ListOfAllEmployeesClient(EmployeeSearchModelDto searchModel, long workshopId); #endregion diff --git a/CompanyManagment.App.Contracts/Employee/IEmployeeApplication.cs b/CompanyManagment.App.Contracts/Employee/IEmployeeApplication.cs index 6547c132..58a5190a 100644 --- a/CompanyManagment.App.Contracts/Employee/IEmployeeApplication.cs +++ b/CompanyManagment.App.Contracts/Employee/IEmployeeApplication.cs @@ -111,7 +111,7 @@ public interface IEmployeeApplication /// /// /// - Task> ListOfAllEmployees(EmployeeSearchModelDto searchModel, long workshopId); + Task> ListOfAllEmployeesClient(EmployeeSearchModelDto searchModel, long workshopId); #endregion } diff --git a/CompanyManagment.Application/EmployeeAplication.cs b/CompanyManagment.Application/EmployeeAplication.cs index ce465140..288bdf4c 100644 --- a/CompanyManagment.Application/EmployeeAplication.cs +++ b/CompanyManagment.Application/EmployeeAplication.cs @@ -1734,9 +1734,9 @@ public class EmployeeAplication : RepositoryBase, IEmployeeAppli return await _EmployeeRepository.GetClientEmployeeList(searchModel, workshopId); } - public async Task> ListOfAllEmployees(EmployeeSearchModelDto searchModel, long workshopId) + public async Task> ListOfAllEmployeesClient(EmployeeSearchModelDto searchModel, long workshopId) { - return await _EmployeeRepository.ListOfAllEmployees(searchModel, workshopId); + return await _EmployeeRepository.ListOfAllEmployeesClient(searchModel, workshopId); } #endregion diff --git a/CompanyManagment.EFCore/Repository/EmployeeRepository .cs b/CompanyManagment.EFCore/Repository/EmployeeRepository .cs index d7b362c7..05db2554 100644 --- a/CompanyManagment.EFCore/Repository/EmployeeRepository .cs +++ b/CompanyManagment.EFCore/Repository/EmployeeRepository .cs @@ -1175,7 +1175,7 @@ public class EmployeeRepository : RepositoryBase, IEmployeeRepos } - public async Task> ListOfAllEmployees(EmployeeSearchModelDto searchModel, long workshopId) + public async Task> ListOfAllEmployeesClient(EmployeeSearchModelDto searchModel, long workshopId) { var hasNotStoppedWorkingYet = Tools.GetUndefinedDateTime(); diff --git a/ServiceHost/Areas/Client/Controllers/EmployeeController.cs b/ServiceHost/Areas/Client/Controllers/EmployeeController.cs index 140009e6..c506d9cb 100644 --- a/ServiceHost/Areas/Client/Controllers/EmployeeController.cs +++ b/ServiceHost/Areas/Client/Controllers/EmployeeController.cs @@ -33,7 +33,7 @@ public class EmployeeController:ClientBaseController [HttpGet] public async Task>> GetList(EmployeeSearchModelDto searchModel) { - var result = await _employeeApplication.ListOfAllEmployees(searchModel, _workshopId); + var result = await _employeeApplication.ListOfAllEmployeesClient(searchModel, _workshopId); return result; } } \ No newline at end of file