//Hae yksi lemmikki lemmikki id:n perusteella public Pets GetOnePetbyId(int key) { pethouseContext db = new pethouseContext(); Pets pet = db.Find <Pets>(key); return(pet); }
//Hae yksi rotu public Breeds GetOneBreed(int key) { pethouseContext db = new pethouseContext(); Breeds breed = db.Find <Breeds>(key); return(breed); }