Exemple #1
0
        public ResultStatus Freeze(
            TeamMaint teamMaint,
            TeamMaint_Parameters parameters,
            TeamMaint_Request request,
            out TeamMaint_Result result)
        {
            result = (TeamMaint_Result)null;
            this.OnBeforeCall(nameof(Freeze), (DCObject)teamMaint, (Parameters)parameters, (Request)request);
            ResultStatus res;

            try
            {
                res = !this._IsTransactionOpened ? ((ITeamMaintService)this._Channel).Freeze(this._UserProfile, teamMaint, parameters, request, out result) : this.AddMethod((Method) new TeamMaintMethod(teamMaint, TeamMaintMethods.Freeze, parameters));
            }
            catch (Exception ex)
            {
                res = this.OnThrowException(ex);
            }
            if (res.IsSuccess)
            {
                this.OnAfterCall(nameof(Freeze), res, (DCObject)teamMaint, (Parameters)parameters, (Request)request, (Result)result);
            }
            return(res);
        }
Exemple #2
0
 public TeamMaintMethod(TeamMaint Cdo, TeamMaintMethods Method, TeamMaint_Parameters Parameters)
 {
     this.Cdo           = Cdo;
     this.ServiceMethod = Method;
     this.Parameters    = Parameters;
 }