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