public async Task <Address> AddAddress(Address address) { _logger.Log(LogLevel.Debug, "Request Received for AddressBLL::AddAddress"); var newAddress = await _addressDal.AddAddress(address); _logger.Log(LogLevel.Debug, "Returning the results from AddressBLL::AddAddress"); return(newAddress); }
public void AddAddress(string country, string city, string street, string build, out string alert) { if (country == null || city == null || street == null || build == null) { alert = "Couldn't add address! One of the fields is null."; return; } else { _addressDAL.AddAddress(new Address() { Country = country, City = city, Street = street, Build = build }); alert = "Address added successfully"; } }
public Address AddAddress(Address address) { _logger.Log(LogLevel.Debug, "Request Received for AddressBLL::AddAddress"); return(_addressDal.AddAddress(address)); }
public async Task <Address> AddAddress(Address address) { _logger.Log(LogLevel.Debug, "Request Received for AddressBLL::AddAddress"); return(await _addressDal.AddAddress(address)); }