public ActionResult Index()
        {
            KunyeListViewModel model = new KunyeListViewModel
            {
                Kunyes = _kunyeService.GetAll()
            };

            return(View(model));
        }
Beispiel #2
0
        public ActionResult Index()
        {
            var programci = _programciService.GetAll();
            var kunyes    = _kunyeService.GetAll();
            var yayins    = _yayinService.GetAll();
            var vitrins   = _vitrinService.GetAll();
            var iletisims = _iletisimService.GetAll();
            var kurumsals = _kurumsalService.GetAll();
            var top30     = _top30Service.GetAll();

            HomeListViewModel model = new HomeListViewModel
            {
                Kunyes     = kunyes,
                Yayins     = yayins,
                Iletisims  = iletisims,
                Kurumsals  = kurumsals,
                Vitrins    = vitrins,
                Programcis = programci,
                Top30      = top30,
                Mesajs     = new Mesaj()
            };

            return(View(model));
        }