public KoseYazisiController() { this.db = new HaberSitesiDbContext(); this.haberServis = new HaberServis(db); this.kategoriServis = new KategoriServis(db); this.kullaniciServis = new KullaniciServis(db); }
public HaberController() { this.db = new HaberSitesiDbContext(); this.haberServis = new HaberServis(db); this.etiketServis = new EtiketServis(db); this.kategoriServis = new KategoriServis(db); this.kullaniciServis = new KullaniciServis(db); }
public OrtakController() { this.db = new HaberSitesiDbContext(); this.haberServis = new HaberServis(db); this.kategoriServis = new KategoriServis(db); this.kullaniciServis = new KullaniciServis(db); this.yorumServis = new YorumServis(db); }
public IList <IcerikBaslik> FindDropDownList() { using (Database db = new Database()) { List <IcerikBaslik> baslik1 = new List <IcerikBaslik>(); string query = "SELECT Serial, KategoriAdi FROM IcerikBaslik ORDER BY Serial, Sira"; baslik1.Add(new IcerikBaslik { Serial = "0", KategoriAdi = "-- Kategori Seçiniz --" }); foreach (IcerikBaslik b in db.Query <IcerikBaslik>(query)) { baslik1.Add(new IcerikBaslik { Serial = b.Serial, KategoriAdi = KategoriServis.Cizgi(b.Serial) + b.KategoriAdi }); } return(baslik1); } }
public KategoriController() { this.db = new HaberPortalDbContext(); this.kategoriServis = new KategoriServis(db); }