コード例 #1
0
        public bool Insert(string Name, DateTime ModifiedDate)
        {
            EmailAddressTypeDAC emailaddresstypeComponent = new EmailAddressTypeDAC();
            int EmailAddressTypeId = 0;

            return(emailaddresstypeComponent.InsertNewEmailAddressType(ref EmailAddressTypeId, Name, ModifiedDate));
        }
コード例 #2
0
        public bool Insert(EmailAddressType emailaddresstype)
        {
            int autonumber = 0;
            EmailAddressTypeDAC emailaddresstypeComponent = new EmailAddressTypeDAC();
            bool endedSuccessfuly = emailaddresstypeComponent.InsertNewEmailAddressType(ref autonumber, emailaddresstype.Name, emailaddresstype.ModifiedDate);

            if (endedSuccessfuly)
            {
                emailaddresstype.EmailAddressTypeId = autonumber;
            }
            return(endedSuccessfuly);
        }