public void DeleteTask(int id) { var task = _repository.Get(id); if (_verify.IsNull(task)) { throw new Exception("Tarefa não encontrada"); } _repository.Remove(task); }
public void DeleteTask(int id) { var task = _repository.Get(id); if (_verify.IsNull(task)) { throw new Exception("Tarefa não encontrada"); } _repository.Remove(task); }