Exemplo n.º 1
0
 public JsonResult checkShowPopup(ShowPopupViewModel model)
 {
     bool show = false;
     string popupNumber = model.popupNumber;
     if (Session[popupNumber] == null)
     {
         show = true;
         Session["popupNumber"] = true;
     }
     return Json(new { success = show });
 }
Exemplo n.º 2
0
 public JsonResult getCheckShowPopup(ShowPopupViewModel data)
 {
     bool show = false;
     string popupNumber = data.popupNumber;
     return Json(new { success = show }, JsonRequestBehavior.AllowGet);
     // TODO: Check: success always retrn false ? //
 }