Ejemplo n.º 1
0
 public void UpdateAddress(Address address, string country, string city, string street, string build, out string alert)
 {
     if (country == null || city == null || street == null || build == null)
     {
         alert = "Couldn't update address! One of the fields is null.";
         return;
     }
     else
     {
         address.Country = country;
         address.City    = city;
         address.Street  = street;
         address.Build   = build;
         _addressDAL.UpdateAddress(address);
         alert = "Address update successfully";
     }
 }