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); }
public CorDTO ObterCorPorId(string idCor) { if ((idCor != null) && (idCor != "")) { return(_corDAO.ObterCorPorId(idCor)); } return(null); }