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)); }
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)); }