public static void AddArticle(string name) { db.Type.Add(new Type { Title = name }); db.SaveChanges(); }
private void Button_Click_1(object sender, RoutedEventArgs e) { db.SaveChanges(); }