コード例 #1
0
        public bool Insert(int BusinessEntityId, string PhoneNumber, int PhoneNumberTypeId, DateTime ModifiedDate, bool PhoneVerified, string PhoneVerificationCode)
        {
            PersonPhoneDAC personphoneComponent = new PersonPhoneDAC();
            int            Id = 0;

            return(personphoneComponent.InsertNewPersonPhone(ref Id, BusinessEntityId, PhoneNumber, PhoneNumberTypeId, DateTime.Now, PhoneVerified, PhoneVerificationCode));
        }
コード例 #2
0
        public bool Insert(PersonPhone personphone)
        {
            int            autonumber           = 0;
            PersonPhoneDAC personphoneComponent = new PersonPhoneDAC();
            bool           endedSuccessfuly     = personphoneComponent.InsertNewPersonPhone(ref autonumber, personphone.BusinessEntityId, personphone.PhoneNumber, personphone.PhoneNumberTypeId, DateTime.Now, personphone.PhoneVerified, personphone.PhoneVerificationCode);

            if (endedSuccessfuly)
            {
                personphone.Id = autonumber;
            }
            return(endedSuccessfuly);
        }