public void Add(Address address) { if (address is null) { throw new ArgumentNullException(nameof(address)); } if (validateLogic.Validate(address).IsValid) { addressDao.Add(address, out ValidatableObject <Address> validatedAddress); } }
public Address Add(Address address) { return(_addressDao.Add(address)); }
public IResult Add(Address address) { _addressDao.Add(address); return(new SuccessResult(true, ResultMessages.AddressAdded)); }