Ejemplo n.º 1
0
 public ActionResult Welcome()
 {
     if (_session.IsLogin && _session.IsStore && _session.IsAdmin)
         {
             IWelcome _cls = new WelcomeBO();
             var model = _cls.GetWelcome(_session.LangID);
             return View(model);
         }
         else
             return RedirectToAction("index", "admin");
 }
Ejemplo n.º 2
0
        public JsonResult SaveWelcome(Slide slide, SlideLang slideLang)
        {
            if (_session.IsLogin && _session.IsStore && _session.IsAdmin)
                {
                    slide.SiteID = _session.SiteID;
                    slide.Type = "WELCOME";
                    slide.IsActive = true;
                    slideLang.LangID = _session.LangID;
                    slideLang.Name = "Welcome";

                    IWelcome _cls = new WelcomeBO();
                    var IsResult = _cls.SaveWelcome(slide, slideLang);
                    return Json(new { IsOk = IsResult }, JsonRequestBehavior.AllowGet);
                }
                else
                    RedirectToAction("index", "admin");
                return Json("[]", JsonRequestBehavior.AllowGet);
        }