diff --git a/CompanyManagment.EFCore/Repository/CustomizeCheckoutRepository.cs b/CompanyManagment.EFCore/Repository/CustomizeCheckoutRepository.cs index 8b43b1b1..9d7b45ba 100644 --- a/CompanyManagment.EFCore/Repository/CustomizeCheckoutRepository.cs +++ b/CompanyManagment.EFCore/Repository/CustomizeCheckoutRepository.cs @@ -15,12 +15,16 @@ using Microsoft.EntityFrameworkCore; using System; using System.Collections.Generic; using System.Globalization; +using System.IO; using System.Linq; +using AccountMangement.Infrastructure.EFCore; using Company.Domain.CustomizeCheckoutAgg.ValueObjects; +using CompanyManagment.App.Contracts.EmployeeDocuments; using CompanyManagment.App.Contracts.Fine; using CompanyManagment.App.Contracts.Loan; using CompanyManagment.App.Contracts.Reward; using CompanyManagment.App.Contracts.SalaryAid; +using Microsoft.AspNetCore.Hosting; namespace CompanyManagment.EFCore.Repository { @@ -28,10 +32,14 @@ namespace CompanyManagment.EFCore.Repository { private readonly CompanyContext _companyContext; private readonly IRollCallRepository _rollCallRepository; - public CustomizeCheckoutRepository(CompanyContext context, IRollCallRepository rollCallRepository) : base(context) + private readonly AccountContext _accountContext; + private readonly IWebHostEnvironment _webHostEnvironment; + public CustomizeCheckoutRepository(CompanyContext context, IRollCallRepository rollCallRepository, AccountContext accountContext, IWebHostEnvironment webHostEnvironment) : base(context) { _companyContext = context; _rollCallRepository = rollCallRepository; + _accountContext = accountContext; + _webHostEnvironment = webHostEnvironment; } #region Pooya public List GetByWorkshopIdInDates(long workshopId, DateTime startOfMonth, DateTime endOfMonth)