public bool Insert(string Name, DateTime ModifiedDate) { EmailAddressTypeDAC emailaddresstypeComponent = new EmailAddressTypeDAC(); int EmailAddressTypeId = 0; return(emailaddresstypeComponent.InsertNewEmailAddressType(ref EmailAddressTypeId, Name, ModifiedDate)); }
public bool Insert(EmailAddressType emailaddresstype) { int autonumber = 0; EmailAddressTypeDAC emailaddresstypeComponent = new EmailAddressTypeDAC(); bool endedSuccessfuly = emailaddresstypeComponent.InsertNewEmailAddressType(ref autonumber, emailaddresstype.Name, emailaddresstype.ModifiedDate); if (endedSuccessfuly) { emailaddresstype.EmailAddressTypeId = autonumber; } return(endedSuccessfuly); }