Пример #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();
        }
Пример #2
0
 public static void IcerikEkle(Proje.DataAccess.icerik yazilar)
 {
     Proje.DataAccess.WebProjeEntities ent = new DataAccess.WebProjeEntities();
     ent.icerik.Add(yazilar);
     ent.SaveChanges();
 }
Пример #3
0
 public static void PostOlustur(Proje.DataAccess.icerik postyap)
 {
     Proje.DataAccess.WebProjeEntities ent = new DataAccess.WebProjeEntities();
     ent.icerik.Add(postyap);
     ent.SaveChanges();
 }
Пример #4
0
 public static void KullaniciEkle(Proje.DataAccess.Kullanici kullanicilar)
 {
     Proje.DataAccess.WebProjeEntities ent = new DataAccess.WebProjeEntities();
     ent.Kullanici.Add(kullanicilar);
     ent.SaveChanges();
 }