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; }
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(); }