Exemple #1
0
        public Cor ObterCorPorId(string idCor)
        {
            var cor = _corDao.ObterCorPorId(idCor);

            if (cor == null)
            {
                this.Mensagem = "Metodo executado incorretamente ObterCorPorId() BLL";
                throw new NotFoundException("Id não encontrado.");
            }

            return(cor);
        }
Exemple #2
0
 public CorDTO ObterCorPorId(string idCor)
 {
     if ((idCor != null) && (idCor != ""))
     {
         return(_corDAO.ObterCorPorId(idCor));
     }
     return(null);
 }