private void Delete(HttpContext context) { int?intParam = base.GetIntParam(context, "GradeId", true); if (!intParam.HasValue) { throw new HidistroAshxException("错误的数据编号"); } try { if (ManagerHelper.CheckAdminPrivilege(Privilege.DeleteReferralGrade)) { if (MemberProcessor.DeleteReferralGrade(intParam.Value)) { base.ReturnSuccessResult(context, "删除成功!", 0, true); goto end_IL_002a; } throw new HidistroAshxException("删除失败"); } throw new HidistroAshxException("对不起,您没有删除分销员等级的权限!"); end_IL_002a :; } catch { throw new HidistroAshxException("删除失败!"); } }