Пример #1
0
 public void Add(AddressViewModel address)
 {
     Address Address = Mapper.Map<Address>(address);
     //Address.street.city.country = null;
     Address.street.city = null;
     Address.street = null;
     repositoryAddressGeneral.Create(Address);
 }
Пример #2
0
 public void Delete(AddressViewModel address)
 {
     Address Address = Mapper.Map<Address>(address);
     repositoryAddressGeneral.Delete(Address);
 }