Ejemplo n.º 1
0
        internal static List <FaturamentoBarbearia> BuscarFaturamentoDasBarbearias()
        {
            SqlConnection conexao = null;

            List <FaturamentoBarbearia> faturamentoBarbearia;

            try
            {
                conexao = FabricaConexao.GetConnection();

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

            return(faturamentoBarbearia);
        }