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

            return(addressEntity);
        }
Ejemplo n.º 3
0
        public AddressEntity GetAddressEntityByDto(AddressModify address)
        {
            AddressEntity addressEntity = _addressRepo.findByDto(address);

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