private void UpdateDocument(Document.SaveData saveData, List <FundResponseFields> fields) { if (fields.Contains(FundResponseFields.DocumentType)) { saveData.DocumentTypeId = DocumentType.Id != 0 ? DocumentType.Id : new long?(); } if (fields.Contains(FundResponseFields.DocumentSeries)) { saveData.Series = this.DocumentSeries; } if (fields.Contains(FundResponseFields.DocumentNumber)) { saveData.Number = this.DocumentNumber; } }
public SaveData() { OldClientInfo = new ClientVersion.SaveData(); NewClientInfo = new ClientVersion.SaveData(); NewDocument = new Document.SaveData(); OldDocument = new Document.SaveData(); NewForeignDocument = new Document.SaveData(); OldForeignDocument = new Document.SaveData(); LivingAddress = new Address.SaveData(); RegistrationAddress = new Address.SaveData(); OldPolicy = new PolicyInfo.SaveData(); NewPolicy = new PolicyInfo.SaveData(); Representative = new Representative.SaveData(); }