public void AddPerson(PersonBO person) { if (!IsValidTZ(person.Id)) { new InvalidOperationException("The given Id is invalid"); } if (!dal.ChaeckPersonMail(person.Email)) { try { dal.AddPerson(PersonConvertBOToDO(person)); } catch (DuplicateKeyException ex) { throw ex; } } else { throw new DuplicateKeyException(person.Email, "The mail alredy is in the system by a othrer user\n"); } }