Beispiel #1
0
        public string InsertNewCourse(CourseAssign courseAssign)
        {
            int rowAffected = aCourseAssignGateway.AssignNewCourse(courseAssign);

            if (rowAffected > 0)
            {
                return("Teacher Course Assign Successfully Done!!!");
            }
            else
            {
                return("Course Assign Failed!!");
            }
        }
        public string InsertNewCourse(CourseAssign courseAssign)
        {
            int rowAffected = _courseAssignGateway.AssignNewCourse(courseAssign);

            return(rowAffected > 0 ? "Course assign to Teacher Successfully" : "Failed");
        }