Beispiel #1
0
        public bool Insert(int BusinessEntityId, int EmailAddressTypeId, string Email, bool EmailVerified, string EmailVerificationHash, Guid RowGuid, DateTime ModifiedDate)
        {
            EmailAddressDAC emailaddressComponent = new EmailAddressDAC();
            int             EmailAddressId        = 0;

            return(emailaddressComponent.InsertNewEmailAddress(ref EmailAddressId, BusinessEntityId, EmailAddressTypeId, Email, EmailVerified, EmailVerificationHash, new Guid(), DateTime.Now));
        }
Beispiel #2
0
        public bool Insert(EmailAddress emailaddress)
        {
            int             autonumber            = 0;
            EmailAddressDAC emailaddressComponent = new EmailAddressDAC();
            bool            endedSuccessfuly      = emailaddressComponent.InsertNewEmailAddress(ref autonumber, emailaddress.BusinessEntityId, emailaddress.EmailAddressTypeId, emailaddress.Email, emailaddress.EmailVerified, emailaddress.EmailVerificationHash, new Guid(), DateTime.Now);

            if (endedSuccessfuly)
            {
                emailaddress.EmailAddressId = autonumber;
            }
            return(endedSuccessfuly);
        }