Beispiel #1
0
 public bool AddNewCourse(Course course)
 {
     try
     {
         if (course != null)
         {
             CourseRepo courseRepo = new CourseRepo();
             if (courseRepo.InsertCourse(course))
             {
                 return(true);
             }
             else
             {
                 throw new PrometheusException("Insertion of Course Failed");
             }
         }
     }
     catch (Exception)
     {
         throw;
     }
     return(false);
 }