Ejemplo n.º 1
0
        /// <summary>
        /// Saves the Instructor object to the database
        /// </summary>
        /// <param name="instructorToSave"></param>
        /// <returns></returns>
        public static int Save(Instructor instructorToSave)
        {
            int personId = SavePerson(instructorToSave);

            instructorToSave.PersonId = personId;

            return(InstructorDAL.Save(instructorToSave));
        }
Ejemplo n.º 2
0
        public static int Save(Instructor instructorToSave)
        {
            int personId = SavePerson(instructorToSave);

            instructorToSave.PersonId = personId;

            //notes: call DAL to save
            return(InstructorDAL.Save(instructorToSave));
        }