public async void AddGoal(string goalName, string goalDescription) { var goal = new Goal { Name = goalName, Description = goalDescription, Dates = new ObservableCollection<DateTime>() }; this._goals.Add(goal); await SaveGoalDataAsync(); }
public async void CompletedGoalToday(Goal goalInstance) { var index = this._goals.IndexOf(goalInstance); this._goals[index].AddDate(); await this.SaveGoalDataAsync(); }