public Category Update(Category category) { _databaseContext.Categories.Update(category); _databaseContext.SaveChanges(); return(category); }
public void Delete(Category category) { _databaseContext.Categories.Remove(category); _databaseContext.SaveChanges(); }
public Category AddCategory(Category category) { _databaseContext.Categories.Add(category); _databaseContext.SaveChanges(); return(category); }