public ActionResult Index() { // home model List <Referans> references = _referenceData.GetSliderReferences(); List <MusteriYazi> customerWritings = _customerWritingData.GetCustomerWritings(); List <DuyuruHaber> news = _newsData.GetNews(); List <Popup> popups = _popupData.GetPopups(); var homeModel = new HomeModel { References = references, CustomerWritings = customerWritings, News = news, Popups = popups }; //layout model FirmaBilgileri firm = _firmsData.GetFirstActiveFirm(); var layoutModel = new LayoutModel <HomeModel>(homeModel, firm); return(View(layoutModel)); }
public ActionResult Index() { List <Popup> popups = _popupData.GetPopups(); return(View(popups)); }