public ActionResult ContactUs()
        {
            CmsContentPageViewModel vm = new CmsContentPageViewModel();

            vm = DecorateViewModel(vm);

            string slug = "ContactUsSidebar";

            if (_cmsService.SelectAllByPath(slug) != null)
            {
                vm.Page = _cmsService.SelectAllByPath(slug).ToDisplay();
            }

            if (_cmsService.SelectTemplateByID(vm.Page.Template) != null)
            {
                vm.Template = _cmsService.SelectTemplateByID(vm.Page.Template);
            }

            return View(vm);
        }
        public ActionResult DisplayContent(string slug)
        {
            CmsContentPageViewModel vm = new CmsContentPageViewModel();

            vm = DecorateViewModel(vm);

            if (_cmsService.SelectAllByPath(slug) != null)
            {
                vm.Page = _cmsService.SelectAllByPath(slug).ToDisplay();
                vm.PopularTags = _tagsService.GetPopular();

                int OwnerId = vm.Page.Id;
                vm.CustomMetaTags = _cmsService.SelectPageMetaTags(OwnerId);
            }
            else
            {
                return View("Cms404");
            }

            if (vm.Page != null)
            {
                if (vm.Page.PubDate > DateTime.Now)
                {
                    return View("Cms404");
                }
                else if (vm.Page.ExpireDate < DateTime.Now)
                {
                    return View("Cms404");
                }
                else if (vm.Page.Active == false)
                {
                    return View("Cms404");
                }
                else
                {
                    vm.Template = _cmsService.SelectTemplateByID(vm.Page.Template);
                }
            }

            //if (vm.CustomMetaTags != null)
            //{

            //    string CustomValue = vm.CustomMetaTags.Value;

            //    //foreach (var mc in vm.PageMetaTag.Where(x => x.Id == 3))
            //    //    mc.Value = vm.CustomMetaTags.Id.Where(x => x.Id == 3);
            //    for (var i = 0; i < vm.CustomMetaTags.Count; i++)
            //    {
            //        foreach (var mc in vm.PageMetaTag.Where(x => x.Id == i))
            //            mc.Value = vm.CustomMetaTags[i];
            //    }

            //}

            //if (vm.CustomMetaTags != null)
            //{
            //    Sabio.Web.Domain.CMSCustomMeta tag = new Sabio.Web.Domain.CMSCustomMeta();

            //    string[] terms = new string[400];
            //    for (int runs = 0; runs < tag.Value.Length; runs++)
            //    {
            //        terms.push(runs);
            //    }

            //    foreach (var mc in vm.PageMetaTag.Where(x => x.Id == 15))
            //        mc.Value = tag.Value;

            //    foreach (var mc in vm.PageMetaTag.Where(x => x.Id == 16))
            //        mc.Value = tag.Value;

            //    return View("Content", vm);
            //}

                return View("Content", vm);
        }