public int Create(Course course)
        {
            this.courses.Add(course);

            this.courses.Save();

            return course.Id;
        }
        public void Update(int id, Course course)
        {
            var entityToUpdate = this.courses.GetById(id);

            entityToUpdate.Title = course.Title;
            entityToUpdate.Description = course.Description;
            entityToUpdate.Images = course.Images;
            entityToUpdate.Trainers = course.Trainers;
            entityToUpdate.Students = course.Students;

            this.courses.Save();
        }