public async Task Execute(int id) { if (id == 0) { throw new NotFoundRegisterException("CheckList não Encontrado."); } var checklist = await _repository.FindById(id); if (checklist == null) { throw new NotFoundRegisterException("CheckList não Encontrado."); } await _repository.Delete(checklist); }