public Collection<Category> getAllCategories() {
return this._categoryDao.getAllCategories();
}
public String edit() {
this._category = (this.id != 0) ? this._categoryDao.getCategoryById(this.id) : new Category();
this._category.setName(this.name);
this._category.setDescription(this.description);
this._categoryDao.saveCategory(this._category);
return "category-details";