示例#1
0
 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;
 }
示例#2
0
        public bool Insert( string Name,  DateTime ModifiedDate)
        {
            PhoneNumberTypeDAC phonenumbertypeComponent = new PhoneNumberTypeDAC();
            int PhoneNumberTypeId = 0;

            return phonenumbertypeComponent.InsertNewPhoneNumberType( ref PhoneNumberTypeId,  Name,  ModifiedDate);
        }