Example #1
0
 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");
 }
Example #2
0
 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);
         }
 }
Example #3
0
 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);
     }
 }
Example #4
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");
        }
Example #5
0
 public ActionResult About()
 {
     IAbout _about = new AboutBO();
         vw_About model = _about.GetData(_session.SiteID, _session.LangID);
         return View(model);
 }
Example #6
0
 public ActionResult About()
 {
     AboutBO iAbout = new AboutBO();
         var model = iAbout.GetAbout();
         return View(model);
 }