public bool Insert(string Name, Guid RowGuid, DateTime ModifiedDate) { PersonPersonTypesDAC personpersontypesComponent = new PersonPersonTypesDAC(); int PersonPersonTypesId = 0; return(personpersontypesComponent.InsertNewPersonPersonTypes(ref PersonPersonTypesId, Name, RowGuid, ModifiedDate)); }
public bool Insert(PersonPersonTypes personpersontypes) { int autonumber = 0; PersonPersonTypesDAC personpersontypesComponent = new PersonPersonTypesDAC(); bool endedSuccessfuly = personpersontypesComponent.InsertNewPersonPersonTypes(ref autonumber, personpersontypes.Name, personpersontypes.RowGuid, personpersontypes.ModifiedDate); if (endedSuccessfuly) { personpersontypes.PersonPersonTypesId = autonumber; } return(endedSuccessfuly); }