Beispiel #1
0
 public void AddCategory(Category category)
 {
     context.Categories.Add(category);
     context.SaveChanges();
 }
 private void Save()
 {
     context.SaveChanges();
 }
Beispiel #3
0
 public void AddCity(City city)
 {
     context.Cities.Add(city);
     context.SaveChanges();
 }