Esempio n. 1
0
        public async Task GetWorkout(string name)
        {
            var query = new ParseQuery<Workout>().WhereEqualTo("name", name);
            IEnumerable<Workout> result = await query.FindAsync();
            if (result.ToList().Count > 0)
                _workout = result.ElementAt(0);

            await GetExercises();
        }
Esempio n. 2
0
 public WorkoutViewModel()
 {
     _workout = new Workout();
     _exercises = new ObservableCollection<Exercise>();
 }