function action_Remove() { PermissionHelper::Verification('Editor'); $section_id = $_GET['id']; $section = SectionService::GetById($section_id); CatalogueService::Delete($section); header("Location: /section/item"); }
function action_Update() { PermissionHelper::Verification('Editor'); $group_id = $_POST['id']; $group_name = $_POST['inputName']; $group = SectionService::GetById($group_id); $group->name = $group_name; AttributeGroupService::Save($group); header("Location: /AttributeGroup/Item"); }