public Models.ClassTeacherSchedule.GradeCourseModel GetGradeCourseByID(int GradeCourseID)
        {
            BusinessLogic.ClassTeacherSchedule.GradeCourseManager GradeCourseManager = new BusinessLogic.ClassTeacherSchedule.GradeCourseManager();
            BusinessEntity.ClassTeacherSchedule.GradeCourseEntity GradeCourse        = GradeCourseManager.GetGradeCourseByID(GradeCourseID);

            return(new Models.ClassTeacherSchedule.GradeCourseModel(GradeCourse));
        }
        public List <Models.ClassTeacherSchedule.GradeCourseModel> GetGradeCourses()
        {
            BusinessLogic.ClassTeacherSchedule.GradeCourseManager GradeCourseManager = new BusinessLogic.ClassTeacherSchedule.GradeCourseManager();

            List <BusinessEntity.ClassTeacherSchedule.GradeCourseEntity> GradeCourses      = GradeCourseManager.GetGradeCourses();
            List <Models.ClassTeacherSchedule.GradeCourseModel>          GradeCourseModels = new List <Models.ClassTeacherSchedule.GradeCourseModel>();

            foreach (BusinessEntity.ClassTeacherSchedule.GradeCourseEntity GradeCourse in GradeCourses)
            {
                GradeCourseModels.Add(new Models.ClassTeacherSchedule.GradeCourseModel(GradeCourse));
            }

            return(GradeCourseModels);
        }
        public BusinessEntity.Result DeleteGradeCourse(Models.ClassTeacherSchedule.GradeCourseModel GradeCourse)
        {
            BusinessEntity.Result result = new BusinessEntity.Result();
            try
            {
                BusinessLogic.ClassTeacherSchedule.GradeCourseManager GradeCourseManager = new BusinessLogic.ClassTeacherSchedule.GradeCourseManager();
                result = GradeCourseManager.DeleteGradeCourse(GradeCourse.MapToEntity <BusinessEntity.ClassTeacherSchedule.GradeCourseEntity>());

                return(result);
            }
            catch (Exception ex)
            {
                result.Status  = false;
                result.Message = "GradeCourse delete failed.";

                return(result);
            }
        }