Esempio n. 1
0
 public ActionResult Deleted(string idsStr)
 {
     try
     {
         var ids = idsStr.Substring(0, idsStr.LastIndexOf(',')).Split(',');
         foreach (var id in ids)
         {
             CommunityService.Deleted(long.Parse(id));
         }
         return(Json(new AjaxResult <object>
         {
             code = 0,
             msg = "删除成功"
         }));
     }
     catch (Exception ex)
     {
         Log.ErrorFormat("删除区域失败:" + ex.Message);
         return(Json(new AjaxResult <object>
         {
             code = 1,
             msg = "删除失败"
         }));
     }
 }
Esempio n. 2
0
 public ActionResult Deleted(long id)
 {
     try
     {
         CommunityService.Deleted(id);
         return(Json(new AjaxResult <object>
         {
             code = 0,
             msg = "删除成功"
         }));
     }
     catch (Exception ex)
     {
         Log.ErrorFormat("删除区域失败:" + ex.Message);
         return(Json(new AjaxResult <object>
         {
             code = 1,
             msg = "删除失败"
         }));
     }
 }