public SaveData(Representative representative) { this.RepresentativeTypeId = representative.RepresentativeTypeId; this.DocumentTypeId = representative.DocumentType != null ? representative.DocumentType.Id : new long?(); this.Firstname = representative.Firstname; this.Secondname = representative.Secondname; this.Lastname = representative.Lastname; this.Birthday = representative.Birthday; this.Series = representative.Series; this.Number = representative.Number; this.IssueDate = representative.IssueDate; this.IssueDepartment = representative.IssueDepartment; }
public ClientVisit() { OldClientInfo = new ClientVersion(); NewClientInfo = new ClientVersion(); OldDocument = new Document(); NewDocument = new Document(); NewForeignDocument = new Document(); OldForeignDocument = new Document(); LivingAddress = new Address(); RegistrationAddress = new Address(); OldPolicy = new PolicyInfo(); NewPolicy = new PolicyInfo(); Status = new ReferenceItem(); Registrator = new User(); DeliveryCenter = new DeliveryCenter(); Representative = new Representative(); }