Example #1
0
        public int Create(CourseObjective objective)
        {
            this.objectives.Add(objective);

            this.objectives.Save();

            return(objective.Id);
        }
        public int Create(CourseObjective objective)
        {
            this.objectives.Add(objective);

            this.objectives.Save();

            return objective.Id;
        }
Example #3
0
        public void Update(int id, CourseObjective objective)
        {
            var entityToUpdate = this.objectives.GetById(id);

            entityToUpdate.Title       = objective.Title;
            entityToUpdate.Description = objective.Description;
            entityToUpdate.Lessons     = objective.Lessons;

            this.objectives.Save();
        }
        public void Update(int id, CourseObjective objective)
        {
            var entityToUpdate = this.objectives.GetById(id);

            entityToUpdate.Title = objective.Title;
            entityToUpdate.Description = objective.Description;
            entityToUpdate.Lessons = objective.Lessons;

            this.objectives.Save();
        }