public void Atualizar(Ocorrencia ocorrencia) { if (ocorrencia.Id != 0) { _ocorrenciaRepository.Update(ocorrencia); _unitOfWork.Commit(); } }