示例#1
0
 public bool CriarLeilao(Persistencia.Leilao leilao, string natureza, string formaLances)
 {
     if (leilao != null)
     {
         // logica - Factory para criar o Leilao
         LogicaLeilao.Factory.LeilaoFactory leilaoFactory = new LogicaLeilao.Factory.LeilaoFactory();
         Leilao leiaoParaCriar = leilaoFactory.InstanceLeilao(leilao, natureza, formaLances);
         return(gerenciadorDB.addLeilao(leiaoParaCriar));
     }
     return(false);
 }
示例#2
0
 public bool addLeilao(Leilao leilao)
 {
     return(leilaoDAO.addLeilao(leilao));
 }