diff --git a/CompanyManagment.EFCore/Repository/InstitutionContractRepository.cs b/CompanyManagment.EFCore/Repository/InstitutionContractRepository.cs index dd46712d..bfde349f 100644 --- a/CompanyManagment.EFCore/Repository/InstitutionContractRepository.cs +++ b/CompanyManagment.EFCore/Repository/InstitutionContractRepository.cs @@ -2693,15 +2693,15 @@ public class InstitutionContractRepository : RepositoryBasex.CurrentWorkshopId ==0).ToList(); - var newWorkshopTempIds = newWorkshops.Select(x=>x.Id); + var newWorkshopTempIds = newWorkshops.Select(x=>x.Id).ToList(); var changes = newWorkshops.Select(x=> new InstitutionContractAmendmentChange(InstitutionContractAmendmentChangeType.WorkshopCreated, DateTime.Now,x.CustomizeCheckout,x.ContractAndCheckout,x.ContractAndCheckoutInPerson, - x.Insurance,x.InsuranceInPerson,x.CountPerson,x.RollCall,x.RollCallInPerson,0)); + x.Insurance,x.InsuranceInPerson,x.CountPerson,x.RollCall,x.RollCallInPerson,0)).ToList(); var changedWorkshops = amendmentTemp.NewWorkshops - .Where(x => !newWorkshopTempIds.Contains(x.Id)); + .Where(x => !newWorkshopTempIds.Contains(x.Id)).ToList(); foreach (var changedWorkshop in changedWorkshops) { @@ -2737,7 +2737,7 @@ public class InstitutionContractRepository : RepositoryBase(),request.LawId); + request.IsInstallment,changes,request.LawId); institutionContract.AddAmendment(amendment); + //Todo : ارسال پیامک تغییرات - و ذخیره تغییرات + }