public bool Insert(string EducationTypeName) { EducationTypeDAC educationtypeComponent = new EducationTypeDAC(); int EducationTypeId = 0; return(educationtypeComponent.InsertNewEducationType(ref EducationTypeId, EducationTypeName)); }
public bool Insert(EducationType educationtype) { int autonumber = 0; EducationTypeDAC educationtypeComponent = new EducationTypeDAC(); bool endedSuccessfuly = educationtypeComponent.InsertNewEducationType(ref autonumber, educationtype.EducationTypeName); if (endedSuccessfuly) { educationtype.EducationTypeId = autonumber; } return(endedSuccessfuly); }