Beispiel #1
0
 protected void WriteToPersonModel(Person originalModel)
 {
     originalModel.FirstName = FirstName;
     originalModel.LastName = LastName;
     originalModel.NIP = NIP;
     originalModel.Address.City = City;
     originalModel.Address.StreetAddress = StreetAddress;
     originalModel.Address.ZipCode = ZipCode;
     originalModel.REGON = REGON;
     originalModel.CompanyName = CompanyName;
 }
Beispiel #2
0
 protected override void ReadFromModel(Person person)
 {
     base.ReadFromModel(person);
     OriginalModel = person as Buyer;
 }
Beispiel #3
0
 protected virtual void ReadFromModel(Person person)
 {
     PersonId = person.ID;
     FirstName = person.FirstName;
     LastName = person.LastName;
     NIP = person.NIP;
     City = person.Address.City;
     StreetAddress = person.Address.StreetAddress;
     ZipCode = person.Address.ZipCode;
     REGON = person.REGON;
     CompanyName = person.CompanyName;
 }
Beispiel #4
0
 protected override void ReadFromModel(Person person)
 {
     base.ReadFromModel(person);
     OriginalModel = person as Seller;
     if (OriginalModel != null)
     {
         BankName = OriginalModel.BankName;
         BankAccountNumber = OriginalModel.BankAccountNumber;
     }
 }