public ActionResult Save(StaticContentViewModel staticContentViewModel)
        {
            CheckIfSiteAdmin();

            // Make sure staticContentViewModel is not null
            this.CheckNotNull(() => new { staticContentViewModel });
            if (ModelState.IsValid)
            {
                var staticContent = new StaticContentDetails()
                {
                    TypeID       = staticContentViewModel.ContentType,
                    Content      = staticContentViewModel.Content,
                    ModifiedByID = CurrentUserId
                };

                var status = _staticContentService.UpdateStaticContent(staticContent);
                if (!status.Succeeded)
                {
                    throw new Exception(status.ErrorMessage, status.Exception);
                }

                switch (staticContentViewModel.ContentType)
                {
                case (int)StaticContentType.HomePageHelpText:
                    return(RedirectToAction("Index", "Home"));

                case (int)StaticContentType.FAQ:
                    return(RedirectToAction("FAQs", "Home"));

                case (int)StaticContentType.WWTInstall:
                    return(RedirectToAction("InstallWWT", "Home"));

                case (int)StaticContentType.ExcelInstall:
                    return(RedirectToAction("ExcelAddInWelcome", "Home"));

                case (int)StaticContentType.ExcelHelp:
                    return(RedirectToAction("ExcelAddInHelp", "Home"));

                case (int)StaticContentType.LearnMore:
                    return(RedirectToAction("LearnMore", "Home"));

                case (int)StaticContentType.GetStarted:
                    return(RedirectToAction("GetStarted", "Home"));

                case (int)StaticContentType.VisualizingContentinWWT:
                    return(RedirectToAction("VisualizingContentinWWT", "Home"));

                case (int)StaticContentType.Narwhal:
                    return(RedirectToAction("Narwhal", "Home"));

                case (int)StaticContentType.WWTAddinForExcel:
                    return(RedirectToAction("WWTAddinForExcel", "Home"));

                default:
                    return(RedirectToAction("Index", "Admin"));
                }
            }
            else
            {
                // In case of any validation error stay in the same page.
                staticContentViewModel.Content = Server.HtmlDecode(staticContentViewModel.Content);
                return(View("Save", staticContentViewModel));
            }
        }