Exemplo n.º 1
0
        internal static List <PedidoReport> BuscarPedidosDoAtendente(Atendente atendenteSelecionado)
        {
            SqlConnection conexao = null;

            List <PedidoReport> pedidosAtendente;

            try
            {
                conexao = FabricaConexao.GetConnection();

                ReportDAO reportDAO = new ReportDAO(conexao);
                pedidosAtendente = reportDAO.buscarPedidosDoAtendente(atendenteSelecionado);
            }
            catch (Exception)
            {
                throw;
            }
            finally
            {
                FabricaConexao.CloseConnection(conexao);
            }

            return(pedidosAtendente);
        }