Esempio n. 1
0
 private UserDTO(string firstName, string lastName, int age, IList <AccountEntity> debs, AddressEntity mainAddress, UserSourceEntity source)
 {
     FirstName = firstName;
     LastName  = lastName;
     Age       = age;
     Debs      = debs.Select(deb => new AccountDTO()
     {
         BankName = deb.BankName,
         Number   = deb.Number
     }).ToList();
     Source      = new UserSourceDTO(providerName: source.ProviderName, providerAddress: source.ProviderAddress);
     MainAddress = new AddressDTO()
     {
         City       = mainAddress.City,
         ZipCode    = mainAddress.ZipCode,
         Street     = mainAddress.Street,
         FlatNo     = mainAddress.FlatNo,
         BuildingNo = mainAddress.BuildingNo
     };
 }
Esempio n. 2
0
 private UserDTO(string firstName, string lastName, int age, IList <AccountEntity> debs, AddressEntity mainAddress, UserSourceEntity source)
 {
 }