public bool Insert(int ResearchChairId, int LanguageId, string Name, string Description) { ResearchChairLanguagesDAC researchchairlanguagesComponent = new ResearchChairLanguagesDAC(); int ResearchChairLanguagesId = 0; return(researchchairlanguagesComponent.InsertNewResearchChairLanguages(ref ResearchChairLanguagesId, ResearchChairId, LanguageId, Name, Description)); }
public bool Insert(ResearchChairLanguages researchchairlanguages) { int autonumber = 0; ResearchChairLanguagesDAC researchchairlanguagesComponent = new ResearchChairLanguagesDAC(); bool endedSuccessfuly = researchchairlanguagesComponent.InsertNewResearchChairLanguages(ref autonumber, researchchairlanguages.ResearchChairId, researchchairlanguages.LanguageId, researchchairlanguages.Name, researchchairlanguages.Description); if (endedSuccessfuly) { researchchairlanguages.ResearchChairLanguagesId = autonumber; } return(endedSuccessfuly); }