public ActionResult About() { if (_session.IsLogin && _session.IsStore && _session.IsAdmin) { IAbout _cls = new AboutBO(); var model = _cls.GetData(_session.SiteID, _session.LangID); return View(model); } else return RedirectToAction("index", "admin"); }
public JsonResult About(AboutLang aboutlang) { if (_session.IsLogin && _session.IsStore && _session.IsAdmin) { IAbout _cls = new AboutBO(); var isResult = _cls.UpdateAbout(aboutlang); return Json(new { IsOk = isResult }, JsonRequestBehavior.AllowGet); } else { RedirectToAction("index", "admin"); return Json(new { IsOk = false }, JsonRequestBehavior.AllowGet); } }
public JsonResult About(About about) { if (_session.IsLogin) { AboutBO _cls = new AboutBO(); var isResult = _cls.Save(about); return Json(new { IsOk = isResult }, JsonRequestBehavior.AllowGet); } else { RedirectToAction("index", "admin"); return Json(new { IsOk = false }, JsonRequestBehavior.AllowGet); } }
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() { IAbout _about = new AboutBO(); vw_About model = _about.GetData(_session.SiteID, _session.LangID); return View(model); }
public ActionResult About() { AboutBO iAbout = new AboutBO(); var model = iAbout.GetAbout(); return View(model); }