Beispiel #1
0
 public void UpdateCategory(Category category)
 {
     _context.Entry(category).State = EntityState.Modified;
 }
Beispiel #2
0
 public void InsertCategory(Category category)
 {
     _context.Categories.Add(category);
 }