Example #1
0
        public static object UpdateCSA(SessionInfo sessioninfo, MA_CSA_AGREEMENT record)
        {
            try
            {
                CounterpartyBusiness _counterpartyBusiness = new CounterpartyBusiness();

                record.LOG.MODIFYBYUSERID = sessioninfo.CurrentUserId;
                record.LOG.MODIFYDATE     = DateTime.Now;

                var updateRecord = _counterpartyBusiness.UpdateCSA(sessioninfo, record);

                return(new { Result = "OK", Record = new CSAAgreementModel {
                                 ID = updateRecord.ID, CSA_TYPE_ID = updateRecord.CSA_TYPE_ID, ISACTIVE = updateRecord.ISACTIVE
                             } });
            }
            catch (Exception ex)
            {
                return(new { Result = "ERROR", Message = ex.Message });
            }
        }
Example #2
0
        public static object UpdateCSA(SessionInfo sessioninfo, MA_CSA_AGREEMENT record)
        {
            try
            {
                CounterpartyBusiness _counterpartyBusiness = new CounterpartyBusiness();

                record.LOG.MODIFYBYUSERID = sessioninfo.CurrentUserId;
                record.LOG.MODIFYDATE = DateTime.Now;

                var updateRecord = _counterpartyBusiness.UpdateCSA(sessioninfo, record);

                return new { Result = "OK", Record = new CSAAgreementModel { ID = updateRecord.ID, CSA_TYPE_ID = updateRecord.CSA_TYPE_ID, ISACTIVE = updateRecord.ISACTIVE } };
            }
            catch (Exception ex)
            {
                return new { Result = "ERROR", Message = ex.Message };
            }
        }