Beispiel #1
0
 public HaberController(IKategoriService kategoriService, IHaberService haberService, IEtiketService etiketService, IUnitOfWork unitOfWork)
 {
     _kategoriService = kategoriService;
     _haberService    = haberService;
     _etiketService   = etiketService;
     _unitOfWork      = unitOfWork;
 }
 public HaberController(IHaberService haberService, IKategoriService kategoriService, IEtiketService etiketService, IGaleriService resimlerService, ApplicationUserManager userManager)
 {
     _haberService    = haberService;
     _kategoriService = kategoriService;
     _etiketService   = etiketService;
     _resimlerService = resimlerService;
     _userManager     = userManager;
 }
        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()
                });
            }
        }
Beispiel #4
0
 public HaberController()
 {
     haberServis = InstanceFactory.GetInstance <IHaberService>();
 }
 public HomeController(IHaberService haberService)
 {
     this.haberService = haberService;
 }
 public Haberlerim()
 {
     haberServis = InstanceFactory.GetInstance <IHaberService>();
 }