public TENOR find(string tenorCode, BRContext db) { TENOR tenor = new TENOR(); TenorRepository ur = new TenorRepository(db); tenor = ur.select(tenorCode); return(tenor); }
public TENOR find(Guid tenorID, BRContext db) { TENOR tenor = new TENOR(); TenorRepository br = new TenorRepository(db); tenor = br.select(tenorID); return(tenor); }
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); } }
public List <TENOR> findAll(BRContext db) { TenorRepository ur = new TenorRepository(db); return(ur.selectAll()); }
public void deleteTenor(TENOR tenor, BRContext db) { TenorRepository ur = new TenorRepository(db); ur.delete(tenor); }
public void editTenor(TENOR tenor, BRContext db) { TenorRepository ur = new TenorRepository(db); ur.update(tenor); }
public List <TENOR> findLike(string tenorCode, BRContext db) { TenorRepository br = new TenorRepository(db); return(br.selectLike(tenorCode)); }