Esempio n. 1
0
        public void removeRequest(int id)
        {
            finalDataBaseEntities2 f = new finalDataBaseEntities2();
            Accepter d = f.Accepters.First(x => x.AccepterId == id);

            f.DeleteObject(d);
            f.SaveChanges();
        }
Esempio n. 2
0
        public void removeDonor(int id)
        {
            finalDataBaseEntities2 f = new finalDataBaseEntities2();
            Donor d = f.Donors.First(x => x.DonorId == id);

            f.DeleteObject(d);
            f.SaveChanges();
        }