Ejemplo n.º 1
0
        public ActionResult About()
        {
            var model = new AloViewModel()
            {
                About = db.Abouts.FirstOrDefault(),
            };

            ViewBag.Message = "Your application description page.";

            return(View(model));
        }
Ejemplo n.º 2
0
        // GET: Serviceontroller
        public ActionResult Index(string name)
        {
            finalProjectEntities db = new finalProjectEntities();

            var model = new AloViewModel()
            {
                Accardion = db.Accardion.ToList(),

                choose             = db.ChooseUs.FirstOrDefault(),
                choseeTag          = db.ChooseUsTags.ToList(),
                Ustun              = db.Ustun.ToList(),
                UstunContent       = db.UstunContent.ToList(),
                XidmetContent      = db.XidmetContent.ToList(),
                xidmet             = db.Xidmetler.ToList(),
                WeOffer            = db.WeOffer.ToList(),
                yaglama            = db.yagalama.FirstOrDefault(),
                AksesuarQurasdirma = db.AksesuarQurasdirma.FirstOrDefault()
            };

            return(View(model));
        }
Ejemplo n.º 3
0
        // GET: Portfolio
        public ActionResult Index()
        {
            finalProjectEntities db = new finalProjectEntities();


            var model = new AloViewModel()
            {
                XidmetContent = db.XidmetContent.ToList(),


                Accessories        = db.Accessories.ToList(),
                login              = db.AdminUsers.ToList(),
                AutoPlanet         = db.AutoPlanet.ToList(),
                battary            = db.Battaries.ToList(),
                AksesuarQurasdirma = db.AksesuarQurasdirma.FirstOrDefault(),

                contact = db.Contacts.FirstOrDefault(),

                detail          = db.Details.ToList(),
                FooterBottom    = db.FooterBottom.ToList(),
                FooterMiddle    = db.FooterMiddle.ToList(),
                FooterTop       = db.FooterTop.ToList(),
                HeaderBottom    = db.HeaderBottom.ToList(),
                HeaderMiddle    = db.HeaderMiddle.ToList(),
                HeaderTop       = db.HeaderTop.ToList(),
                HomeSlider      = db.HomeSlider.ToList(),
                HomeSliderSlick = db.HomeSliderSlick.ToList(),
                Portfolio       = db.Portfolios.ToList(),

                Shop         = db.Shop.ToList(),
                Ustun        = db.Ustun.ToList(),
                UstunContent = db.UstunContent.ToList(),
                WeOffer      = db.WeOffer.ToList(),

                yag = db.Yaglar.ToList()
            };

            return(View(model));
        }