public IHttpActionResult GetPostFeedBack_API() { DBSubmitPost objDB = new DBSubmitPost(); var jsonResult = (dynamic)null; jsonResult = Json(objDB.GetPostFeedBack_API()); return(jsonResult); }
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)); } }
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)); } }
//-------------------- 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)); } }