public JsonResult GetCommunityActivityAdminList(CommunityActivityModel model) { try { return(Json(new { model = new CommunityActivityModel().GetCommunityActivityAdminList(model) }, JsonRequestBehavior.AllowGet)); } catch (Exception Ex) { return(Json(new { model = Ex.Message }, JsonRequestBehavior.AllowGet)); } }
public JsonResult SaveUpdateCommunityActivity(CommunityActivityModel model) { try { return(Json(new { model = new CommunityActivityModel().SaveUpdateCommunityPost(model) }, JsonRequestBehavior.AllowGet)); } catch (Exception Ex) { return(Json(new { model = Ex.Message }, JsonRequestBehavior.AllowGet)); } }
public ActionResult DeleteCommunityActivityPost(CommunityActivityModel model) { try { (new CommunityActivityModel()).DeleteCommunityActivityPost(model); return(Json(new { result = 1 }, JsonRequestBehavior.AllowGet)); } catch (Exception ex) { return(Json(new { error = ex.Message }, JsonRequestBehavior.AllowGet)); } }
public ActionResult uploadAttatchFileCommunityActivity(CommunityActivityModel model) { try { HttpPostedFileBase fileBaseUpload = null; for (int i = 0; i < Request.Files.Count; i++) { fileBaseUpload = Request.Files[i]; } return(Json(new { model = new CommunityActivityModel().SaveUploadAttachFileCommunityActivity(fileBaseUpload, model) }, JsonRequestBehavior.AllowGet)); } catch (Exception Ex) { return(Json(new { model = Ex.Message }, JsonRequestBehavior.AllowGet)); } }