示例#1
0
        //Hae yksi lemmikki lemmikki id:n perusteella
        public Pets GetOnePetbyId(int key)
        {
            pethouseContext db  = new pethouseContext();
            Pets            pet = db.Find <Pets>(key);

            return(pet);
        }
示例#2
0
        //Hae yksi rotu
        public Breeds GetOneBreed(int key)
        {
            pethouseContext db    = new pethouseContext();
            Breeds          breed = db.Find <Breeds>(key);

            return(breed);
        }