コード例 #1
0
 public int Inserir(TB_Enquete enquete)
 {
     try
     {
         var objEnquete = new Desafio_DAL.Enquete();
         return(objEnquete.Inserir(enquete));
     }
     catch (Exception)
     {
         throw;
     }
 }
コード例 #2
0
 public void Alterar(TB_Enquete enquete)
 {
     try
     {
         var objEnquete = new Desafio_DAL.Enquete();
         objEnquete.Alterar(enquete);
     }
     catch (Exception)
     {
         throw;
     }
 }
コード例 #3
0
 public void Votar(TB_Opcao opcao)
 {
     try
     {
         var objEnquete = new Desafio_DAL.Enquete();
         objEnquete.Votar(opcao);
     }
     catch (Exception)
     {
         throw;
     }
 }
コード例 #4
0
 public void Excluir(int id)
 {
     try
     {
         var excDados = new Desafio_DAL.Enquete();
         excDados.Excluir(id);
     }
     catch (Exception)
     {
         throw;
     }
 }
コード例 #5
0
 public TB_Enquete ListarStats(int id)
 {
     try
     {
         var retorno = new Desafio_DAL.Enquete();
         var obj     = retorno.ListarStats(id);
         return(obj);
     }
     catch (Exception)
     {
         throw;
     }
 }
コード例 #6
0
 public VO_Enquete ListPollById(int id)
 {
     try
     {
         var retorno = new Desafio_DAL.Enquete();
         var obj     = retorno.ListPollById(id);
         return(obj);
     }
     catch (Exception)
     {
         throw;
     }
 }
コード例 #7
0
 //public List<TB_Enquete> ListarTodos()
 //{
 //    var retorno = new DAL.Enquete();
 //    List<TB_Enquete> obj = retorno.ListarTodos();
 //    return obj;
 //}
 public List <TB_Enquete> ListarTodos()
 {
     try
     {
         var retorno = new Desafio_DAL.Enquete();
         var obj     = retorno.ListarTodos();
         return(obj);
     }
     catch (Exception)
     {
         throw;
     }
 }