public static List <MUsuario> CarregaCombo() { List <MUsuario> retorno = null; retorno = DGrupoPesquisa.ObterUsuarioCombo(); return(retorno); }
public static List <MGrupoPesquisa> PesquisaGrupo(MGrupoPesquisa item) { List <MGrupoPesquisa> retorno = null; if (item != null && item.Nome != null && item.Nome.Length <= 200) { retorno = DGrupoPesquisa.PesquisarGrupo(item); } retorno = DGrupoPesquisa.PesquisarGrupo(item); return(retorno); }
public static void Inserir(MGrupoPesquisa item) { if (item.Nome == null || item.Nome.Trim().Equals("")) { throw new ExcecaoPadrao(Erros.NomeInvalido); } if (item.DataTermino < item.DataInicio) { throw new ExcecaoPadrao(Erros.DatasInvalidas); } DGrupoPesquisa.Inserir(item); }