Exemplo n.º 1
0
        public bool Insert(string EducationTypeName)
        {
            EducationTypeDAC educationtypeComponent = new EducationTypeDAC();
            int EducationTypeId = 0;

            return(educationtypeComponent.InsertNewEducationType(ref EducationTypeId, EducationTypeName));
        }
Exemplo n.º 2
0
        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);
        }