public static List <CourseModel> getAllCourses()
 {
     {
         AdministratorRepository up         = new AdministratorRepository();
         List <CourseModel>      courseList = null;
         try
         {
             courseList = up.getAllCourses();
         }
         catch (Exception ex)
         {
             var mesajEroare = ex.Message + "-" + ex.InnerException;;
         }
         return(courseList);
     }
 }