Kommentare KindController

This commit is contained in:
Samuel Wolff 2023-12-11 15:33:08 +01:00
parent 62df0fcaf0
commit cab0d36555

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);