예제 #1
0
        private async Task <bool> CadastrarTurnoOcorrencia(Guid turnoId)
        {
            ICollection <OcorrenciaResultDto> listaOcorrenciasEmAberto = await _ocorrenciaRepository.PesquisarOcorrenciasEmAndamento();

            if (!listaOcorrenciasEmAberto.Equals(null))
            {
                if (listaOcorrenciasEmAberto.Count > 0 && !listaOcorrenciasEmAberto.Contains(null))
                {
                    return(await _turnoOcorrenciaRepository.AdicionarOcorrenciasEmAbertoAoTurno(turnoId, listaOcorrenciasEmAberto));
                }
            }
            return(true);
        }
 public async Task <ICollection <OcorrenciaResultDto> > PesquisarOcorrenciasEmAndamento()
 {
     return(await _ocorrenciaRepository.PesquisarOcorrenciasEmAndamento());
 }