Esempio n. 1
0
        //------------------ End :: Function ------------------
        #endregion End :: SubmitPost Information

        #region Start :: Post Feed Back Information

        //------------------ Start :: Function ------------------
        public ActionResult SavePostFeedback(PostFeedback objItem)
        {
            ALLMENU allMenu = new ALLMENU();

            allMenu = (ALLMENU)Session["Menu"];
            if (allMenu != null)
            {
                DBPostFeedback objDB = new DBPostFeedback();
                return(Json(objDB.SavePostFeedback(objItem, allMenu.ListObjMenuPermission[0].UserID.ToString())));
            }
            else
            {
                return(Json(new { JsonData = "", IsLogin = "******", redirectUrl = Url.Action("Index", "Security") }, JsonRequestBehavior.AllowGet));
            }
        }
Esempio n. 2
0
        public JsonResult GetPostCount(string PostID, string IsAcive)
        {
            ALLMENU allMenu = new ALLMENU();

            allMenu = (ALLMENU)Session["Menu"];
            if (allMenu != null)
            {
                DBPostFeedback objDB      = new DBPostFeedback();
                var            jsonResult = Json(objDB.GetPostCount(PostID, IsAcive, allMenu.ListObjMenuPermission[0].UserID.ToString()), JsonRequestBehavior.AllowGet);
                jsonResult.MaxJsonLength = int.MaxValue;

                return(Json(new { JsonData = jsonResult, IsLogin = "******" }, JsonRequestBehavior.AllowGet));
            }
            else
            {
                return(Json(new { JsonData = "", IsLogin = "******", redirectUrl = Url.Action("Index", "Security") }, JsonRequestBehavior.AllowGet));
            }
        }