Exemplo n.º 1
0
        internal static List <FaturamentoFilial> BuscarFaturamentoDasFiliais()
        {
            SqlConnection conexao = null;

            List <FaturamentoFilial> faturamentoFilial;

            try
            {
                conexao = FabricaConexao.GetConnection();

                ReportDAO reportDAO = new ReportDAO(conexao);
                faturamentoFilial = reportDAO.buscarFaturamentoDasFiliais();
            }
            catch (Exception)
            {
                throw;
            }
            finally
            {
                FabricaConexao.CloseConnection(conexao);
            }

            return(faturamentoFilial);
        }