예제 #1
0
 public RolePermissionsMaintMethod(
     RolePermissionsMaint Cdo,
     RolePermissionsMaintMethods Method,
     RolePermissionsMaint_Parameters Parameters)
 {
     this.Cdo           = Cdo;
     this.ServiceMethod = Method;
     this.Parameters    = Parameters;
 }
예제 #2
0
        public ResultStatus Delete(
            RolePermissionsMaint rolePermissionsMaint,
            RolePermissionsMaint_Parameters parameters,
            RolePermissionsMaint_Request request,
            out RolePermissionsMaint_Result result)
        {
            result = (RolePermissionsMaint_Result)null;
            this.OnBeforeCall(nameof(Delete), (DCObject)rolePermissionsMaint, (Parameters)parameters, (Request)request);
            ResultStatus res;

            try
            {
                res = !this._IsTransactionOpened ? ((IRolePermissionsMaintService)this._Channel).Delete(this._UserProfile, rolePermissionsMaint, parameters, request, out result) : this.AddMethod((Method) new RolePermissionsMaintMethod(rolePermissionsMaint, RolePermissionsMaintMethods.Delete, parameters));
            }
            catch (Exception ex)
            {
                res = this.OnThrowException(ex);
            }
            if (res.IsSuccess)
            {
                this.OnAfterCall(nameof(Delete), res, (DCObject)rolePermissionsMaint, (Parameters)parameters, (Request)request, (Result)result);
            }
            return(res);
        }