Ejemplo n.º 1
0
        public static async Task <bool> AddLesson(Lesson lesson, string year = null, string term = null)
        {
            var lessonList = ((App)App.Current).LessonList;

            lessonList.Add(lesson);
            SQLiteService.InsertLesson(lesson.id, lesson.courseId, lesson.week, lesson.day, lesson.homework, lesson.studyMaterial, lesson.studyState);
            return(true);
        }