Example #1
0
        public IActionResult Index()
        {
            ViewData.Add("Title", "SEO Title");
            MetaTags.Add(new KeyValuePair <string, string>("description", "seo description"));
            MetaTags.Add(new KeyValuePair <string, string>("keywords", "seo,keywords,list"));
            ViewBag.MetaNameTags = MetaTags;

            return(View());
        }
Example #2
0
 public IActionResult Index()
 {
     MetaTags.Add(new KeyValuePair <string, string>("TestKey", "TestValue"));
     return(View());
 }