diff --git a/Company.Domain/CheckoutAgg/ICheckoutRepository.cs b/Company.Domain/CheckoutAgg/ICheckoutRepository.cs index eb541857..229e1651 100644 --- a/Company.Domain/CheckoutAgg/ICheckoutRepository.cs +++ b/Company.Domain/CheckoutAgg/ICheckoutRepository.cs @@ -24,7 +24,7 @@ public interface ICheckoutRepository : IRepository Task CreateCkeckout(Checkout command); Task GetContractResultToCreateCheckout(long workshopId, string year, string month, - string contractStart, string contractEnd, long employeeId); + string contractStart, string contractEnd); //void CreateCkeckout(Checkout command); diff --git a/CompanyManagment.App.Contracts/Checkout/ICheckoutApplication.cs b/CompanyManagment.App.Contracts/Checkout/ICheckoutApplication.cs index 61f62226..f35e408a 100644 --- a/CompanyManagment.App.Contracts/Checkout/ICheckoutApplication.cs +++ b/CompanyManagment.App.Contracts/Checkout/ICheckoutApplication.cs @@ -24,7 +24,7 @@ public interface ICheckoutApplication /// /// Task GetContractResultToCreateCheckout(long workshopId, string year, string month, - string contractStart, string contractEnd, long employeeId); + string contractStart, string contractEnd); Task> Search(CheckoutSearchModel searchModel); List SimpleSearch(CheckoutSearchModel searchModel); List PrintAll(List id); diff --git a/CompanyManagment.Application/CheckoutApplication.cs b/CompanyManagment.Application/CheckoutApplication.cs index 722a6839..208e808d 100644 --- a/CompanyManagment.Application/CheckoutApplication.cs +++ b/CompanyManagment.Application/CheckoutApplication.cs @@ -240,10 +240,10 @@ public class CheckoutApplication : ICheckoutApplication } public async Task GetContractResultToCreateCheckout(long workshopId, string year, string month, - string contractStart, string contractEnd, long employeeId) + string contractStart, string contractEnd) { return await _checkoutRepository.GetContractResultToCreateCheckout(workshopId, year, month, contractStart, - contractEnd, employeeId); + contractEnd); } public async Task> Search(CheckoutSearchModel searchModel) diff --git a/CompanyManagment.EFCore/Repository/CheckoutRepository.cs b/CompanyManagment.EFCore/Repository/CheckoutRepository.cs index 6a0394bb..c9bb58e3 100644 --- a/CompanyManagment.EFCore/Repository/CheckoutRepository.cs +++ b/CompanyManagment.EFCore/Repository/CheckoutRepository.cs @@ -125,8 +125,10 @@ public class CheckoutRepository : RepositoryBase, ICheckoutRepos public Task GetContractResultToCreateCheckout(long workshopId, string year, string month, string contractStart, - string contractEnd, long employeeId) + string contractEnd) { + + var contracts = _context.Contracts.Where(x => x.WorkshopIds == workshopId); throw new NotImplementedException(); }