public void AddCourse(CourseInput courseInput)
        {
            Course course = new Course(courseInput.Name,
                                       courseInput.Description,
                                       courseInput.Objective,
                                       courseInput.Price,
                                       courseInput.Caution,
                                       courseInput.Remarks);

            _courseDao.AddCourse(course);
        }
        public void UpdateCourse(int index, CourseInput courseInput)
        {
            Course course = new Course(courseInput.Name,
                                       courseInput.Description,
                                       courseInput.Objective,
                                       courseInput.Price,
                                       courseInput.Caution,
                                       courseInput.Remarks);

            _courseDao.UpdataCourse(index, course);
        }
        public void UpdateCourse(int index, CourseInput courseInput)
        {
            CourseDTO course = new CourseDTO(courseInput.Name,
                                             courseInput.Description,
                                             courseInput.Objective,
                                             courseInput.Price,
                                             courseInput.Caution,
                                             courseInput.Remarks);

            _courseList[index].Name        = courseInput.Name;
            _courseList[index].Description = courseInput.Description;
            _courseList[index].Objective   = courseInput.Objective;
            _courseList[index].Price       = courseInput.Price;
            _courseList[index].Caution     = courseInput.Caution;
            _courseList[index].Remarks     = courseInput.Remarks;
            _courseDao.UpdataCourse(index, course);
        }
 public void UpdateCourse(int index, String name, String description, String objective, String price, String caution, String remarks)
 {
     UseCases.CourseInput courseInput = new UseCases.CourseInput(name, description, objective, price, caution, remarks);
     _usecases.UpdateCourse(index, courseInput);
 }
 public void AddCourse(String name, String description, String objective, String price, String caution, String remarks)
 {
     UseCases.CourseInput courseInput = new UseCases.CourseInput(name, description, objective, price, caution, remarks);
     _usecases.AddCourse(courseInput);
 }