Example #1
0
 public List <Loja> SelectLoja(Loja filtro)
 {
     try
     {
         RegraLoja lojaRegra = new RegraLojaImpl();
         return(lojaRegra.Select(filtro));
     }
     catch (Exception ex)
     {
         throw new Exception("Erro ao conectar e selecionar" + ex.Message);
     }
 }
Example #2
0
 public String InsertLoja(Loja loja)
 {
     try
     {
         RegraLoja lojaRegra = new RegraLojaImpl();
         return(lojaRegra.Insert(loja));
     }
     catch (Exception ex)
     {
         throw new Exception("Erro ao conectar e inserir" + ex.Message);
     }
 }