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"); }
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); }