Example #1
0
        public List <clsPecasDto> ObterDados(int tipo, String filtro)
        {
            clsPecasDal _pecaDal = new clsPecasDal();

            try
            {
                if ((tipo == 0) || (tipo == 1))
                {
                    return(_pecaDal.obterDados(tipo, filtro));
                }

                else
                {
                    throw new Exception("A informação do Tipo para a consulta não foi fornecedida!");
                }
            }

            catch (Exception)
            {
                throw;
            }
        }
Example #2
0
        public List <clsPecasDto> obterDados(int tipo, String filtro)
        {
            clsPecasDal _pecaDal = new clsPecasDal();

            try
            {
                if (tipo == 0 || tipo == 1)
                {
                    return(_pecaDal.obterDados(tipo, filtro));
                }
                else
                {
                    throw new Exception("Não foi possivel realizar a busca");
                }
            }
            catch (Exception)
            {
                return(null);

                throw;
            }
        }