コード例 #1
0
        public ActionResult Hizmetlerimiz()
        {
            MainContext db   = new MainContext();
            Tags        stag = db.Tags.Where(x => x.PageId == 6 && x.Lang == lang).FirstOrDefault();

            if (stag != null)
            {
                ViewBag.Title       = stag.Title;
                ViewBag.Description = stag.Description;
                ViewBag.Keywords    = stag.Keyword;
            }

            OurServices services = new OurServices();

            services = ServiceManager.GetOurServices(lang);
            ServiceWrapperModel swm = new ServiceWrapperModel(null, null, null, null, services);

            return(View(swm));
        }
コード例 #2
0
        //
        // GET: /Service/

        public ActionResult Index()
        {
            MainContext db   = new MainContext();
            Tags        stag = db.Tags.Where(x => x.PageId == 6 && x.Lang == lang).FirstOrDefault();

            if (stag != null)
            {
                ViewBag.Title       = stag.Title;
                ViewBag.Description = stag.Description;
                ViewBag.Keywords    = stag.Keyword;
            }

            List <Service> services = new List <Service>();

            services = ServiceManager.GetServiceListForFront(lang);
            var ourservices = ServiceManager.GetOurServices(lang);

            ServiceWrapperModel swm = new ServiceWrapperModel(null, services, null, null, ourservices);

            return(View(swm));
        }