public List<CourseViewModel> GetCourseCategory()
 {
     var dTable = masterDataRepository.GetCoursesCategory();
     List<CourseViewModel> courses = new List<CourseViewModel>();
     if (null != dTable && dTable.Rows.Count > 0)
     {
         foreach (DataRow row in dTable.Rows)
         {
             courses.Add(new CourseViewModel
             {
                 Id = Convert.ToInt32(row["CategoryId"]),
                 Name = Convert.ToString(row["Name"])
             });
         }
     }
     return courses;
 }