public ActionResult Index() { var top30 = _top30Service.GetAll(); Top30ListViewModel model = new Top30ListViewModel { Top30 = top30 }; return(View(model)); }
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)); }