Exemplo n.º 1
0
        public ActionResult About()
        {
            AboutBO iAbout = new AboutBO();
            var     model  = iAbout.GetAbout();

            return(View(model));
        }
Exemplo n.º 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");
        }
Exemplo n.º 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"));
            }
        }
Exemplo n.º 4
0
 public ActionResult About()
 {
     AboutBO iAbout = new AboutBO();
         var model = iAbout.GetAbout();
         return View(model);
 }