public Task <List <Alerta> > GetAlertasByEstadoAsync(string estado) { if (estado == "Aberto") { return(AlertRepository.GetAlertasAbertoAsync()); } else if (estado == "Em Andamento") { return(AlertRepository.GetAlertasEmAndamentoAsync()); } else if (estado == "Fechado") { return(AlertRepository.GetAlertasFechadoAsync()); } else if (estado == "Cancelado") { return(AlertRepository.GetAlertasCanceladosAsync()); } else { throw new ArgumentException("Argumento Inválido"); } }