Example #1
0
        public bool Insert(string ProgramTypeName)
        {
            ProgramTypeDAC programtypeComponent = new ProgramTypeDAC();
            int            ProgramTypeId        = 0;

            return(programtypeComponent.InsertNewProgramType(ref ProgramTypeId, ProgramTypeName));
        }
Example #2
0
        public bool Insert(ProgramType programtype)
        {
            int            autonumber           = 0;
            ProgramTypeDAC programtypeComponent = new ProgramTypeDAC();
            bool           endedSuccessfuly     = programtypeComponent.InsertNewProgramType(ref autonumber, programtype.ProgramTypeName);

            if (endedSuccessfuly)
            {
                programtype.ProgramTypeId = autonumber;
            }
            return(endedSuccessfuly);
        }