Beispiel #1
0
        public RATE_HISTORY get(string bankCode, string tenorCode, BRContext db)
        {
            RATE_HISTORY          rateHistory = new RATE_HISTORY();
            RateHistoryRepository ur          = new RateHistoryRepository(db);

            rateHistory = ur.Get(bankCode, tenorCode);

            return(rateHistory);
        }
Beispiel #2
0
        public RATE_HISTORY find(string bankCode, BRContext db)
        {
            RATE_HISTORY          rateHistory = new RATE_HISTORY();
            RateHistoryRepository ur          = new RateHistoryRepository(db);

            rateHistory = ur.select(bankCode);

            return(rateHistory);
        }
Beispiel #3
0
        public void addRateHistory(RATE_HISTORY rateHistory, BRContext db)
        {
            RateHistoryRepository ur = new RateHistoryRepository(db);

            //if (ur.select(rateHistory.TenorCode) == null)
            //{
            ur.insert(rateHistory);
            //}
            //else
            //{
            //    logger.Warn("addTenor: " + MessageConstantLogic.ERROR_RECORD_ALREADY_EXISTED + ": " + tenor.TenorCode);
            //    throw new ArgumentException(MessageConstantLogic.ERROR_RECORD_ALREADY_EXISTED + ": " + tenor.TenorCode);
            //}
        }
Beispiel #4
0
        public void deleteRateHistory(RATE_HISTORY rateHistory, BRContext db)
        {
            RateHistoryRepository ur = new RateHistoryRepository(db);

            ur.delete(rateHistory);
        }
Beispiel #5
0
        public void editRateHistory(RATE_HISTORY rateHistory, BRContext db)
        {
            RateHistoryRepository ur = new RateHistoryRepository(db);

            ur.update(rateHistory);
        }
Beispiel #6
0
        public List <RATE_HISTORY> findAll(BRContext db)
        {
            RateHistoryRepository ur = new RateHistoryRepository(db);

            return(ur.selectAll());
        }