public bool Insert(int PersonId, int LanguageId, bool CanRead, bool CanWrite, bool CanSpeak) { PersonLanguageProficiencyDAC personlanguageproficiencyComponent = new PersonLanguageProficiencyDAC(); int PersonLanguageProficiencyId = 0; return(personlanguageproficiencyComponent.InsertNewPersonLanguageProficiency(ref PersonLanguageProficiencyId, PersonId, LanguageId, CanRead, CanWrite, CanSpeak)); }
public bool Insert(PersonLanguageProficiency personlanguageproficiency) { int autonumber = 0; PersonLanguageProficiencyDAC personlanguageproficiencyComponent = new PersonLanguageProficiencyDAC(); bool endedSuccessfuly = personlanguageproficiencyComponent.InsertNewPersonLanguageProficiency(ref autonumber, personlanguageproficiency.PersonId, personlanguageproficiency.LanguageId, personlanguageproficiency.CanRead, personlanguageproficiency.CanWrite, personlanguageproficiency.CanSpeak); if (endedSuccessfuly) { personlanguageproficiency.PersonLanguageProficiencyId = autonumber; } return(endedSuccessfuly); }