public void AddHost(Host host) { if (host == null) { throw new ArgumentNullException(); } //if (!(IsValidPhoneNumber(host.PhoneNumber))) // throw new NotValidPhoneNumberException(); myDal.AddHost(host); }
public void AddHost(Host host) { try { if (!CheackEmailAddress(host.Email)) { throw new InvalidOperationException("The email Addresss is invalid"); } dal.AddHost(host); } catch (Exception e) { throw e; } }
public void AddHost(HostBO host) { try { dal.AddHost(ConvertHostBOToDO(host)); } catch (DuplicateKeyException ex) { throw ex; } }
public void AddHost(Host host) { xml.AddHost(host); }