public static bool IniciarEleicao(string data) { if (string.IsNullOrWhiteSpace(data)) { throw new Exception("Nenhuma data selecionada!"); } try { return(ControlaEleicao_DAL.IniciaEleicao(data)); } catch (Exception ex) { throw new Exception(ex.Message); } }
public static bool VerificaAtiva() { return(ControlaEleicao_DAL.VerificaAtiva()); }