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