Beispiel #1
0
        //private void SessionDelete()
        //{
        //    var sessId = Request.QueryString["sessId"];
        //    var acaId = Request.QueryString["acaId"];
        //    using (var helper = new DbHelper.AcademicYear())
        //    {
        //        var deleted = helper.DeleteSession(Convert.ToInt32(sessId));
        //        if (deleted)
        //            Response.Redirect("~/Views/Academy/AcademicYear/AcademicYearDetail.aspx?aId=" +
        //                              acaId + "&edit=1", false);
        //        else lblError.Visible = true;
        //    }
        //}
        #endregion


        #region SubjectClass

        private void SubjectClassDelete()
        {
            var subclsId = Request.QueryString["subclsId"];

            using (var helper = new DbHelper.Classes())
            {
                int subjectId = 0;
                var deleted   = helper.DeleteSubjectClass(Convert.ToInt32(subclsId), ref subjectId);
                if (deleted)
                {
                    Response.Redirect("~/Views/Course/CourseDetail.aspx?cId=" + subjectId, false);
                }
                else
                {
                    lblError.Visible = true;
                }
            }
        }