public EmployeeRoleMaintMethod( EmployeeRoleMaint Cdo, EmployeeRoleMaintMethods Method, EmployeeRoleMaint_Parameters Parameters) { this.Cdo = Cdo; this.ServiceMethod = Method; this.Parameters = Parameters; }
public ResultStatus Freeze( EmployeeRoleMaint employeeRoleMaint, EmployeeRoleMaint_Parameters parameters, EmployeeRoleMaint_Request request, out EmployeeRoleMaint_Result result) { result = (EmployeeRoleMaint_Result)null; this.OnBeforeCall(nameof(Freeze), (DCObject)employeeRoleMaint, (Parameters)parameters, (Request)request); ResultStatus res; try { res = !this._IsTransactionOpened ? ((IEmployeeRoleMaintService)this._Channel).Freeze(this._UserProfile, employeeRoleMaint, parameters, request, out result) : this.AddMethod((Method) new EmployeeRoleMaintMethod(employeeRoleMaint, EmployeeRoleMaintMethods.Freeze, parameters)); } catch (Exception ex) { res = this.OnThrowException(ex); } if (res.IsSuccess) { this.OnAfterCall(nameof(Freeze), res, (DCObject)employeeRoleMaint, (Parameters)parameters, (Request)request, (Result)result); } return(res); }