samu #4

Merged
PBG2H22AWO merged 5 commits from samu into main 2023-12-11 15:44:45 +01:00
Showing only changes of commit cab0d36555 - Show all commits

View File

@ -24,18 +24,21 @@ class KindController{
return json_encode($result); return json_encode($result);
} }
// Updated ein Kind
public function updateKind($kindId, $data){ public function updateKind($kindId, $data){
$result = $this->db->updateKind($kindId, $data); $result = $this->db->updateKind($kindId, $data);
return json_encode($result); return json_encode($result);
} }
// Fügt ein Kind hinzu
public function addKind($data){ public function addKind($data){
$result = $this->db->addKind($data); $result = $this->db->addKind($data);
return json_encode($data); return json_encode($data);
} }
// Löscht ein Kind
public function deleteKind($kindId){ public function deleteKind($kindId){
$result = $this->db->deleteKind($kindId); $result = $this->db->deleteKind($kindId);