<?php
    //Programmiert von: Max Heer, Getestet von: 

    namespace VPR_Schnittstelle\Controller;

    use VPR_Schnittstelle\Libary\Msg;
    use VPR_Schnittstelle\Model\EnthaeltModel;

    class EnthaeltController(){
        public function getInhaltsstoffe($gerichtId){
            $result=$this->db->getEnthaelt($gerichtId);
            return json_encode($result);
        }

        public function insertEnthaelt($data){
            $result=$this->db->insertEnthaelt($data);
            return json_encode($result);
        }

        public function deleteEnthaelt($id){
            $result=$this->db->deleteEnthaelt($id);
            return json_encode($result);
        }
    }
?>