public void UpdateTaskCompletion(int taskId) { var task = _projectDAO.GetTaskById(taskId); if (task.IsDone) { _projectDAO.UpdateTaskCompletion(taskId, false); } else { _projectDAO.UpdateTaskCompletion(taskId, true); } }