Esempio n. 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;
 }
Esempio n. 2
0
 protected override void ReadFromModel(Person person)
 {
     base.ReadFromModel(person);
     OriginalModel = person as Buyer;
 }
Esempio n. 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;
 }
Esempio n. 4
0
 protected override void ReadFromModel(Person person)
 {
     base.ReadFromModel(person);
     OriginalModel = person as Seller;
     if (OriginalModel != null)
     {
         BankName = OriginalModel.BankName;
         BankAccountNumber = OriginalModel.BankAccountNumber;
     }
 }