protected void CreateBtn_Click(object sender, EventArgs e) { logger.Trace("Create button clicked..."); try { if (Panel1.Visible == false) { LessonService.CreateExternalLesson(SessionVariable.Current.Company.Id, SessionVariable.Current.User.Id, courseId, CurriculumName.Text, Description.Text); } else { switch (CurriculumType.SelectedValue) { case "0": LessonService.CreateScormLesson(SessionVariable.Current.Company.Id, SessionVariable.Current.User.Id, courseId, ScormId.Value, CurriculumName.Text, Description.Text); break; case "1": LessonService.CreateQuizLesson(SessionVariable.Current.Company.Id, SessionVariable.Current.User.Id, courseId, QuizId.Value, CurriculumName.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); }