Beispiel #1
0
        public void save(Donor d)
        {
            finalDataBaseEntities2 f = new finalDataBaseEntities2();

            f.Donors.AddObject(d);
            f.SaveChanges();
        }
Beispiel #2
0
        public void removeRequest(int id)
        {
            finalDataBaseEntities2 f = new finalDataBaseEntities2();
            Accepter d = f.Accepters.First(x => x.AccepterId == id);

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

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