예제 #1
0
        public ActionResult Index()
        {
            FirmaBilgileri firm = _firmsData.GetFirstActiveFirm();

            var layoutModel = new LayoutModel(firm);

            return(View(layoutModel));
        }
예제 #2
0
        public ActionResult Index(string seletedTab)
        {
            FirmaBilgileri firm = _firmsData.GetFirstActiveFirm();

            var productModel = new ProductModel
            {
                SelectedTab = seletedTab
            };

            var layoutModel = new LayoutModel <ProductModel>(productModel, firm);

            return(View(layoutModel));
        }
예제 #3
0
        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));
        }
예제 #4
0
        public ActionResult Index(string Id)
        {
            FirmaBilgileri firm = _firmsData.GetFirstActiveFirm();

            var serviceModel = new ServiceModel
            {
                SelectedId = Id
            };

            var layoutModel = new LayoutModel <ServiceModel>(serviceModel, firm);

            return(View(layoutModel));
        }
예제 #5
0
        public ActionResult Index()
        {
            FirmaBilgileri firm = _firmsData.GetFirstActiveFirm();

            List <DownloadLink> downloadLinks = _downloadLinkData.GetDownloadLinks();

            var downloadModel = new DownloadModel
            {
                Downloads = downloadLinks,
            };

            var layoutModel = new LayoutModel <DownloadModel>(downloadModel, 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));
        }
예제 #7
0
        public ActionResult Index()
        {
            // referans model
            List <Referans> references = _referenceData.GetTopReferences();

            List <MusteriYazi> customerWritings = _customerWritingData.GetCustomerWritings();

            var referanceModel = new ReferenceModel
            {
                References       = references,
                CustomerWritings = customerWritings
            };

            //layout model
            FirmaBilgileri firm = _firmsData.GetFirstActiveFirm();

            var layoutModel = new LayoutModel <ReferenceModel>(referanceModel, firm);

            return(View(layoutModel));
        }