protected void EditBtn_Click(object sender, EventArgs e) { try { if (Panel1.Visible == false) { LessonService.EditExternalLesson(SessionVariable.Current.Company.Id, SessionVariable.Current.User.Id, courseId, lessonId, LessonName.Text, Description.Text); } else { switch (CurriculumType.SelectedValue) { case "0": LessonService.EditScormLesson(SessionVariable.Current.Company.Id, SessionVariable.Current.User.Id, courseId, lessonId, ScormId.Value, LessonName.Text, Description.Text); break; case "1": LessonService.EditQuizLesson(SessionVariable.Current.Company.Id, SessionVariable.Current.User.Id, courseId, lessonId, QuizId.Value, LessonName.Text, Description.Text); break; case "2": //CourseService.CreateAssignmentLesson(); break; default: break; } } } catch (CourseException cex) { logger.Info(cex.ToString()); } catch (Exception ex) { logger.Error(ex.ToString()); } Response.Redirect("CS0101?csid=" + courseId); }