Ejemplo n.º 1
0
 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));
     }
 }
Ejemplo n.º 2
0
 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));
     }
 }
Ejemplo n.º 3
0
 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));
     }
 }
Ejemplo n.º 4
0
        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));
            }
        }