Exemple #1
0
 public int EnrollStudent(CourseEnrollment courseOffering)
 {
     try
     {
         return(_enrollmentRepository.EnrollStudent(courseOffering));
     }
     catch (SqlException sqlEx)
     {
         throw new Exception(EnumUtils.GetStringValue(ErrorMessage.UserDefinedMessage), sqlEx);
     }
     catch (Exception ex)
     {
         throw new Exception(EnumUtils.GetStringValue(ErrorMessage.UserDefinedMessage), ex);
     }
 }