public void Apply(TranscendenceTask task) { if (task.IsPending) { PendingPoints = PendingPoints - task.Points; } else { PendingPoints = PendingPoints + task.Points; } task.IsPending = !task.IsPending; dataManager.AddOrSaveTranscendenceTaskAsync(task); }
public Task AddOrSaveTranscendenceTaskAsync(TranscendenceTask item) { return(database.SaveItemAsync(item)); }