public LegalEntityWithAgreementInputAdapter(LegalEntityWithAgreementInput input) { AccountId = input.AccountId(); Address = input.CompanyAddress; Code = null; DateOfIncorporation = input.CompanyDateOfIncorporation; Name = input.CompanyName; PublicSectorDataSource = (byte)input.PublicSectorDataSource; Sector = input.Sector; Source = input.Source; Status = input.Status; }
public async Task <LegalEnityWithAgreementOutput> CreateLegalEntityAsync(LegalEntityWithAgreementInput input) { var view = await _lazyAccountRepository.Value.CreateLegalEntityWithAgreement( new LegalEntityWithAgreementInputAdapter(input)); var output = new LegalEnityWithAgreementOutput { EmployerAgreementId = view.Id, LegalEntityId = view.LegalEntityId, HashedAgreementId = view.HashedAgreementId }; return(output); }