Exemple #1
0
 public Category Update(Category category)
 {
     _databaseContext.Categories.Update(category);
     _databaseContext.SaveChanges();
     return(category);
 }
Exemple #2
0
 public void Delete(Category category)
 {
     _databaseContext.Categories.Remove(category);
     _databaseContext.SaveChanges();
 }
Exemple #3
0
 public Category AddCategory(Category category)
 {
     _databaseContext.Categories.Add(category);
     _databaseContext.SaveChanges();
     return(category);
 }