Exemple #1
0
 public AddressEntity AddressModifyToAddressEntity(AddressModify address)
 {
     return(new AddressEntity()
     {
         City = address.City,
         Number = address.Number,
         Street = address.Street
     });
 }
        public AddressEntity findByDto(AddressModify address)
        {
            AddressEntity addressEntity = _entities.FirstOrDefault(addEnt =>
                                                                   addEnt.City == address.City &&
                                                                   addEnt.Number == address.Number &&
                                                                   addEnt.Street == address.Street
                                                                   );

            return(addressEntity);
        }
Exemple #3
0
        public AddressEntity GetAddressEntityByDto(AddressModify address)
        {
            AddressEntity addressEntity = _addressRepo.findByDto(address);

            return(addressEntity == null?_addressMapper.AddressModifyToAddressEntity(address) : addressEntity);
        }