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() }); } }
public YazarController() { hesapHareketServis = InstanceFactory.GetInstance <IHesapHareketleriService>(); yazarServis = InstanceFactory.GetInstance <IYazarService>(); yaziServis = InstanceFactory.GetInstance <IYaziService>(); }