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); }
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; }