public int updateCategory(CategoryDTO category) { CategoryDAO dao = new CategoryDAO(); return dao.updateCategory(category); }
public CategoryDTO getCategoryById(int categoryId) { CategoryDAO dao = new CategoryDAO(); return dao.getCategoryById(categoryId); }
public int insertCategory(CategoryDTO category) { CategoryDAO dao = new CategoryDAO(); return dao.insertCategory(category); }
public int deleteCategory(CategoryDTO category) { CategoryDAO dao = new CategoryDAO(); return dao.deleteCategory(category); }