public Boolean insertCategory(String CategoryId, String CategoryName, String CategoryDescription) { Category obj = Category.createCategory(CategoryId, CategoryName, CategoryDescription); CategoryManager mgr = new CategoryManager(); return mgr.insertCategory(obj); }
public Boolean insertCategory(CategoryDto dto) { Category obj = Category.createCategory(dto.CategoryId, dto.CategoryName, dto.CategoryDescription); CategoryManager mgr = new CategoryManager(); return mgr.insertCategory(obj); }