示例#1
0
 /// <summary>
 /// Update the Current User's and course Mapping
 /// </summary>
 /// <param name="currentUser">Session instance of current user</param>
 /// <param name="courseId">course id to be mapped</param>
 /// <returns>Status if mapping added or not.</returns>
 /// <exception >on exception return false</exception>
 public bool StartCourseForTrainee(User currentUser, int courseId)
 {
     if (currentUser != null && currentUser.IsTrainee && currentUser.UserId > 0 && courseId > 0)
     {
         return(LearningPathDataAccessor.StartCourseForTrainee(currentUser, courseId));
     }
     return(false);
 }