Esempio n. 1
0
        public static void PostSil(int sil)
        {
            Proje.DataAccess.WebProjeEntities ent = new DataAccess.WebProjeEntities();
            var Icerık = ent.icerik.Where(p => p.icerikid == sil).FirstOrDefault();

            ent.icerik.Remove(Icerık);
            ent.SaveChanges();
        }
Esempio n. 2
0
 public static void IcerikEkle(Proje.DataAccess.icerik yazilar)
 {
     Proje.DataAccess.WebProjeEntities ent = new DataAccess.WebProjeEntities();
     ent.icerik.Add(yazilar);
     ent.SaveChanges();
 }
Esempio n. 3
0
 public static void PostOlustur(Proje.DataAccess.icerik postyap)
 {
     Proje.DataAccess.WebProjeEntities ent = new DataAccess.WebProjeEntities();
     ent.icerik.Add(postyap);
     ent.SaveChanges();
 }
Esempio n. 4
0
 public static void KullaniciEkle(Proje.DataAccess.Kullanici kullanicilar)
 {
     Proje.DataAccess.WebProjeEntities ent = new DataAccess.WebProjeEntities();
     ent.Kullanici.Add(kullanicilar);
     ent.SaveChanges();
 }