Exemple #1
0
        public ActionResult Detail(string metaTitle, string metaDescription, string metaKeywords)
        {
            var metaTagViewModel = new MetaTagViewModel
            {
                MetaTitle       = AppLogic.AppConfig("SE_MetaTitle"),
                MetaDescription = AppLogic.AppConfig("SE_MetaDescription"),
                MetaKeywords    = AppLogic.AppConfig("SE_MetaKeywords")
            };

            if (!String.IsNullOrEmpty(metaTitle))
            {
                metaTagViewModel.MetaTitle = metaTitle;
            }

            if (!String.IsNullOrEmpty(metaDescription))
            {
                metaTagViewModel.MetaDescription = metaDescription;
            }

            if (!String.IsNullOrEmpty(metaKeywords))
            {
                metaTagViewModel.MetaKeywords = metaKeywords;
            }

            return(PartialView(ViewNames.DetailPartial, metaTagViewModel));
        }
Exemple #2
0
        public ActionResult Detail(string metaTitle, string metaDescription, string metaKeywords)
        {
            var metaTagViewModel = new MetaTagViewModel
            {
                // nal
                MetaTitle       = "Wedding Enhancements",
                MetaDescription = "SE_MetaDescription ",
                MetaKeywords    = "SE_MetaKeywords"
            };

            if (!String.IsNullOrEmpty(metaTitle))
            {
                metaTagViewModel.MetaTitle = metaTitle;
            }

            if (!String.IsNullOrEmpty(metaDescription))
            {
                metaTagViewModel.MetaDescription = metaDescription;
            }

            if (!String.IsNullOrEmpty(metaKeywords))
            {
                metaTagViewModel.MetaKeywords = metaKeywords;
            }

            return(PartialView(ViewNames.DetailPartial, metaTagViewModel));
        }