예제 #1
0
        public ActionResult About()
        {
            AboutBO iAbout = new AboutBO();
            var     model  = iAbout.GetAbout();

            return(View(model));
        }
예제 #2
0
        public ActionResult About()
        {
            if (_session.IsLogin)
            {
                AboutBO _cls = new AboutBO();
                var model = _cls.GetAbout();
                ViewBag.ID = model.AboutID;
                ViewBag.ShortContent = model.ShortContent;

                return View(model);
            }
            else
                return RedirectToAction("index", "admin");
        }
예제 #3
0
        public ActionResult About()
        {
            if (_session.IsLogin)
            {
                AboutBO _cls  = new AboutBO();
                var     model = _cls.GetAbout();
                ViewBag.ID           = model.AboutID;
                ViewBag.ShortContent = model.ShortContent;

                return(View(model));
            }
            else
            {
                return(RedirectToAction("index", "admin"));
            }
        }
예제 #4
0
 public ActionResult About()
 {
     AboutBO iAbout = new AboutBO();
         var model = iAbout.GetAbout();
         return View(model);
 }