public APIResult AreaDelete(UploadData upload) { try { List <Area> list = CommonHelper.DecodeString <List <Area> >(upload.ListJson); // 需要添加一个已经使用不能删除的验证。后期添加 foreach (Area area in list) { masterService.AreaDelete(area.AreaId.ToString()); } return(new APIResult() { Status = true, Body = "" }); } catch (Exception ex) { return(new APIResult() { Status = false, Body = ex.Message.ToString() }); } }