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