Ejemplo n.º 1
0
        public IHttpActionResult GetPostFeedBack_API()
        {
            DBSubmitPost objDB      = new DBSubmitPost();
            var          jsonResult = (dynamic)null;

            jsonResult = Json(objDB.GetPostFeedBack_API());
            return(jsonResult);
        }
Ejemplo n.º 2
0
        public ActionResult UpdatePost(PostInformation objItem)
        {
            ALLMENU allMenu = new ALLMENU();

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

            allMenu = (ALLMENU)Session["Menu"];
            if (allMenu != null)
            {
                DBSubmitPost objDB      = new DBSubmitPost();
                var          jsonResult = Json(objDB.GetPostInformation(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));
            }
        }
Ejemplo n.º 4
0
        //-------------------- End :: Action -------------------
        //------------------ Start :: Function -----------------
        public JsonResult GetPostFeedBack_API()
        {
            ALLMENU allMenu = new ALLMENU();

            allMenu = (ALLMENU)Session["Menu"];
            if (allMenu != null)
            {
                DBSubmitPost objDB      = new DBSubmitPost();
                var          jsonResult = Json(objDB.GetPostFeedBack_API(), 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));
            }
        }