//Add Button (ADD course in the Database) private void btnAddCourse_Click(object sender, RoutedEventArgs e) { courseservice.Addcourse(this); //Context = new DataContext(); //Course course = new Course(); //course.Name = TxtCourseName.Text; //course.Description = TxtCourseDescription.Text; //course.MinDegree =float.Parse(TxtCourseMinDeg.Text); //course.MaxDegree = float.Parse(TxtCourseMaxDeg.Text); //Context.Course.Add(course); //Context.SaveChanges(); }