public int UpdateUserIdForDrivingLesson(int id, int userId)
        {
            try
            {
                DrivingLesson drivingLesson = DrivingLessonRepository.GetById(id);
                drivingLesson.UserId = userId;
                DrivingLessonRepository.Update(drivingLesson);

                return(drivingLesson.Id);
            }
            catch (Exception e)
            {
                throw new Exception(e.Message);
            }
        }
 public DrivingLesson Update(DrivingLesson entity)
 {
     return(DrivingLessonRepository.Update(entity));
 }