private void ExecuteRemove(object p) { if (p != null && p is Course) { var course = p as Course; ServiceDataProvider.DeleteCourse(course.CourseId); Courses.Remove(course); } }
private void ExecuteRemove(object p) { if (p != null && p is Course) { var course = p as Course; ServiceDataProvider.DeleteCourse(course.CourseId); Courses.Remove(course); } }