public bool Insert(int DepartmentId, int LanguageId, string DepartmentName, string DepartmentDescription, string AddressLine1, string AddressLine2) { DepartmentLanguagesDAC departmentlanguagesComponent = new DepartmentLanguagesDAC(); int DepartmentLanguagesId = 0; return(departmentlanguagesComponent.InsertNewDepartmentLanguages(ref DepartmentLanguagesId, DepartmentId, LanguageId, DepartmentName, DepartmentDescription, AddressLine1, AddressLine2)); }
public bool Insert(DepartmentLanguages departmentlanguages) { int autonumber = 0; DepartmentLanguagesDAC departmentlanguagesComponent = new DepartmentLanguagesDAC(); bool endedSuccessfuly = departmentlanguagesComponent.InsertNewDepartmentLanguages(ref autonumber, departmentlanguages.DepartmentId, departmentlanguages.LanguageId, departmentlanguages.DepartmentName, departmentlanguages.DepartmentDescription, departmentlanguages.AddressLine1, departmentlanguages.AddressLine2); if (endedSuccessfuly) { departmentlanguages.DepartmentLanguagesId = autonumber; } return(endedSuccessfuly); }