Example #1
0
        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);
        }
Example #2
0
 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";
     }
 }
Example #3
0
        public Address AddAddress(Address address)
        {
            _logger.Log(LogLevel.Debug, "Request Received for AddressBLL::AddAddress");

            return(_addressDal.AddAddress(address));
        }
Example #4
0
        public async Task <Address> AddAddress(Address address)
        {
            _logger.Log(LogLevel.Debug, "Request Received for AddressBLL::AddAddress");

            return(await _addressDal.AddAddress(address));
        }