Example #1
0
        public TENOR find(string tenorCode, BRContext db)
        {
            TENOR           tenor = new TENOR();
            TenorRepository ur    = new TenorRepository(db);

            tenor = ur.select(tenorCode);

            return(tenor);
        }
Example #2
0
        public TENOR find(Guid tenorID, BRContext db)
        {
            TENOR tenor = new TENOR();

            TenorRepository br = new TenorRepository(db);

            tenor = br.select(tenorID);

            return(tenor);
        }
Example #3
0
        public void addTenor(TENOR tenor, BRContext db)
        {
            TenorRepository ur = new TenorRepository(db);

            if (ur.select(tenor.TenorCode) == null)
            {
                ur.insert(tenor);
            }
            else
            {
                logger.Warn("addTenor: " + MessageConstantLogic.ERROR_RECORD_ALREADY_EXISTED + ": " + tenor.TenorCode);
                throw new ArgumentException(MessageConstantLogic.ERROR_RECORD_ALREADY_EXISTED + ": " + tenor.TenorCode);
            }
        }
Example #4
0
        public List <TENOR> findAll(BRContext db)
        {
            TenorRepository ur = new TenorRepository(db);

            return(ur.selectAll());
        }
Example #5
0
        public void deleteTenor(TENOR tenor, BRContext db)
        {
            TenorRepository ur = new TenorRepository(db);

            ur.delete(tenor);
        }
Example #6
0
        public void editTenor(TENOR tenor, BRContext db)
        {
            TenorRepository ur = new TenorRepository(db);

            ur.update(tenor);
        }
Example #7
0
        public List <TENOR> findLike(string tenorCode, BRContext db)
        {
            TenorRepository br = new TenorRepository(db);

            return(br.selectLike(tenorCode));
        }