コード例 #1
0
        public ActionResult ManageContent(string aboutText, string newsText, string contactText)
        {
            ContentAction objContent = new ContentAction();
            bool isCompleted = false;
            if (!string.IsNullOrEmpty(aboutText))
            {
                isCompleted = objContent.ManageContent("AboutUs", aboutText);
                ViewData["index"] = 1;
            }

            if (!string.IsNullOrEmpty(newsText))
            {
                isCompleted = objContent.ManageContent("News", newsText);
                ViewData["index"] = 2;
            }

            if (!string.IsNullOrEmpty(contactText))
            {
                isCompleted = objContent.ManageContent("Contact", contactText);
                ViewData["index"] = 3;
            }

            GetContent();
            return View();
        }