Beispiel #1
0
 public bool Insert(AddressType addresstype)
 {
     int autonumber = 0;
     AddressTypeDAC addresstypeComponent = new AddressTypeDAC();
     bool endedSuccessfuly = addresstypeComponent.InsertNewAddressType( ref autonumber,  addresstype.Name,  addresstype.RowGuid,  addresstype.ModifiedDate);
     if(endedSuccessfuly)
     {
         addresstype.AddressTypeId = autonumber;
     }
     return endedSuccessfuly;
 }
Beispiel #2
0
        public bool Insert( string Name,  Guid RowGuid,  DateTime ModifiedDate)
        {
            AddressTypeDAC addresstypeComponent = new AddressTypeDAC();
            int AddressTypeId = 0;

            return addresstypeComponent.InsertNewAddressType( ref AddressTypeId,  Name,  RowGuid,  ModifiedDate);
        }