예제 #1
0
        public ActionResult Introduction()
        {
            Introduction introduction = new IntroductionManage().GetIntroductionDetail();

            ViewBag.Title = "公司简介";

            return(View("Introduction", introduction));
        }
예제 #2
0
        public ContentResult GetIntroductionDetail()
        {
            Introduction introduction = new IntroductionManage().GetIntroductionDetail();

            string jsonObj = getJsonByObject(introduction);

            return(base.Content(jsonObj));
        }
예제 #3
0
        public ActionResult AddIntroduction(Introduction introduction)
        {
            introduction.id = new Common().getGUID();

            //introduction.companyIntroduction = Server.HtmlEncode(Request.Params["companyIntroduction"]);
            //introduction.corporatePurpose = Server.HtmlEncode(Request.Params["corporatePurpose"]);
            //introduction.corporateVision = Server.HtmlEncode(Request.Params["corporateVision"]);

            int ret = new IntroductionManage().InsertIntroduction(introduction);

            return(RedirectToRoute("Admin_route4", new { controller = "Home", action = "Introduction" }));
        }
예제 #4
0
        public ActionResult Introduction()
        {
            Introduction introduction = new IntroductionManage().GetIntroductionDetail();

            if (introduction != null)
            {
                ViewBag.bIntroductionExist = true;
            }
            else
            {
                ViewBag.bIntroductionExist = false;
            }

            return(View("Introduction", introduction));
        }
예제 #5
0
        public ActionResult ModifyIntroduction(Introduction introduction)
        {
            int ret = new IntroductionManage().UpdateIntroduction(introduction);

            return(RedirectToRoute("Admin_route4", new { controller = "Home", action = "Introduction" }));
        }