public EditorController()
        {
            hesapHareketServis = InstanceFactory.GetInstance <IHesapHareketleriService>();
            editorServis       = InstanceFactory.GetInstance <IEditorService>();
            haberService       = InstanceFactory.GetInstance <IHaberService>();
            kategoriServis     = InstanceFactory.GetInstance <IKategoriService>();

            kategoriler = new List <SelectListItem>();
            foreach (var item in kategoriServis.List(null))
            {
                kategoriler.Add(new SelectListItem
                {
                    Text  = item.KategoriAdi,
                    Value = item.Id.ToString()
                });
            }
        }
Exemplo n.º 2
0
 public YazarController()
 {
     hesapHareketServis = InstanceFactory.GetInstance <IHesapHareketleriService>();
     yazarServis        = InstanceFactory.GetInstance <IYazarService>();
     yaziServis         = InstanceFactory.GetInstance <IYaziService>();
 }