Esempio n. 1
0
        public TENOR find(string tenorCode, BRContext db)
        {
            TENOR           tenor = new TENOR();
            TenorRepository ur    = new TenorRepository(db);

            tenor = ur.select(tenorCode);

            return(tenor);
        }
Esempio n. 2
0
        public TENOR find(Guid tenorID, BRContext db)
        {
            TENOR tenor = new TENOR();

            TenorRepository br = new TenorRepository(db);

            tenor = br.select(tenorID);

            return(tenor);
        }
Esempio n. 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);
            }
        }