Example #1
0
 public DataTable GetById(int id)
 {
     try
     {
         CourseDAL courseDAL = new CourseDAL();
         return(courseDAL.GetById(id));
     }
     catch (Exception)
     {
         throw;
     }
 }
Example #2
0
 public Course GetCourseById(int id)
 {
     return(new Course(_courseDAL.GetById(id)));
 }