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 Detay(string Id) { FirmaBilgileri firm = _firmsData.GetFirstActiveFirm(); DuyuruHaber news = _newsData.GetNew(Convert.ToInt32(Id)); List <DuyuruHaber> newsFull = _newsData.GetNews(); var newsModel = new NewsModel { DuyuruHaber = news, TumHaberler = newsFull }; var layoutModel = new LayoutModel <NewsModel>(newsModel, firm); return(View(layoutModel)); }
public IActionResult Details(int id) { var modelEvent = _newsData.GetNews(id); return(View(modelEvent)); }
public ActionResult Index() { List <DuyuruHaber> news = _newsData.GetNews(); return(View(news)); }
public IActionResult Index() { var news = _newsData.GetNews(); return(View(news)); }