public Models.Lookup.CourseModel GetCourseByID(int CourseID)
        {
            BusinessLogic.Lookup.CourseManager CourseManager = new BusinessLogic.Lookup.CourseManager();
            BusinessEntity.Lookup.CourseEntity Course        = CourseManager.GetCourseByID(CourseID);

            return(new Models.Lookup.CourseModel(Course));
        }
        public List <Models.Lookup.CourseModel> GetCourses()
        {
            BusinessLogic.Lookup.CourseManager CourseManager = new BusinessLogic.Lookup.CourseManager();

            List <BusinessEntity.Lookup.CourseEntity> Courses      = CourseManager.GetCourses();
            List <Models.Lookup.CourseModel>          CourseModels = new List <Models.Lookup.CourseModel>();

            foreach (BusinessEntity.Lookup.CourseEntity Course in Courses)
            {
                CourseModels.Add(new Models.Lookup.CourseModel(Course));
            }

            return(CourseModels);
        }
        public BusinessEntity.Result DeleteCourse(Models.Lookup.CourseModel Course)
        {
            BusinessEntity.Result result = new BusinessEntity.Result();
            try
            {
                BusinessLogic.Lookup.CourseManager CourseManager = new BusinessLogic.Lookup.CourseManager();
                result = CourseManager.DeleteCourse(Course.MapToEntity <BusinessEntity.Lookup.CourseEntity>());

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

                return(result);
            }
        }