public static void PostOlustur(Proje.DataAccess.icerik postyap) { Proje.DataAccess.WebProjeEntities ent = new DataAccess.WebProjeEntities(); ent.icerik.Add(postyap); ent.SaveChanges(); }
public static void IcerikEkle(Proje.DataAccess.icerik yazilar) { Proje.DataAccess.WebProjeEntities ent = new DataAccess.WebProjeEntities(); ent.icerik.Add(yazilar); ent.SaveChanges(); }