Beispiel #1
0
        public ResultStatus SaveAs(
            EmployeeMaint employeeMaint,
            EmployeeMaint_Parameters parameters,
            EmployeeMaint_Request request,
            out EmployeeMaint_Result result)
        {
            result = (EmployeeMaint_Result)null;
            this.OnBeforeCall(nameof(SaveAs), (DCObject)employeeMaint, (Parameters)parameters, (Request)request);
            ResultStatus res;

            try
            {
                res = !this._IsTransactionOpened ? ((IEmployeeMaintService)this._Channel).SaveAs(this._UserProfile, employeeMaint, parameters, request, out result) : this.AddMethod((Method) new EmployeeMaintMethod(employeeMaint, EmployeeMaintMethods.SaveAs, parameters));
            }
            catch (Exception ex)
            {
                res = this.OnThrowException(ex);
            }
            if (res.IsSuccess)
            {
                this.OnAfterCall(nameof(SaveAs), res, (DCObject)employeeMaint, (Parameters)parameters, (Request)request, (Result)result);
            }
            return(res);
        }