public bool Insert(PhoneNumberType phonenumbertype) { int autonumber = 0; PhoneNumberTypeDAC phonenumbertypeComponent = new PhoneNumberTypeDAC(); bool endedSuccessfuly = phonenumbertypeComponent.InsertNewPhoneNumberType( ref autonumber, phonenumbertype.Name, phonenumbertype.ModifiedDate); if(endedSuccessfuly) { phonenumbertype.PhoneNumberTypeId = autonumber; } return endedSuccessfuly; }
public bool Insert( string Name, DateTime ModifiedDate) { PhoneNumberTypeDAC phonenumbertypeComponent = new PhoneNumberTypeDAC(); int PhoneNumberTypeId = 0; return phonenumbertypeComponent.InsertNewPhoneNumberType( ref PhoneNumberTypeId, Name, ModifiedDate); }