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