Exemplo n.º 1
0
        public bool UpdateWERPProfileStaging(int WerpStagingID, string PanNumber, string BrokerCode)
        {
            bool result = false;
            RejectedRecordsDao rejecetedRecords = new RejectedRecordsDao();

            try
            {
                result = rejecetedRecords.UpdateWERPProfileStaging(WerpStagingID, PanNumber, BrokerCode);
            }
            catch (BaseApplicationException Ex)
            {
                throw Ex;
            }
            catch (Exception Ex)
            {
                BaseApplicationException exBase       = new BaseApplicationException(Ex.Message, Ex);
                NameValueCollection      FunctionInfo = new NameValueCollection();

                FunctionInfo.Add("Method", "RejectedRecordsBo.cs:UpdateWERPProfileStaging()");

                object[] objects = new object[3];
                objects[0] = WerpStagingID;
                objects[1] = PanNumber;
                objects[2] = BrokerCode;

                FunctionInfo = exBase.AddObject(FunctionInfo, objects);
                exBase.AdditionalInformation = FunctionInfo;
                ExceptionManager.Publish(exBase);
                throw exBase;
            }

            return(result);
        }