コード例 #1
0
 public string AssignCourse(CourseAssign aCourseAssign)
 {
     if (aCourseAssignGateway.IsCourseNotAssigned(aCourseAssign))
     {
         if (aCourseAssignGateway.AssignCourse(aCourseAssign))
         {
             return("Course assign saved");
         }
         return("Course assign save failed");
     }
     //int rowAffected = aTeacherGateway.SaveTeacher(aTeacher);
     else
     {
         return("Course is already assigned");
     }
 }