Ejemplo n.º 1
0
        // Remove Course
        public static async Task Remove(CourseModel course, string year = null, string term = null)
        {
            var courselist = await GetCourseList(year, term);

            for (int i = 0; i < courselist.Count; i++)
            {
                if (courselist[i].id == course.id)
                {
                    courselist.RemoveAt(i);
                }
            }
            SQLiteService.DeleteCourse(course.id);
        }