Exemplo n.º 1
0
        private async Task AddMenuAndNavigateBack()
        {
            List <Meal> mealList = new List <Meal>();

            mealList.Add(ScannedMeal);
            await _userService.AddMealHistory(ScannedPerson.Id, mealList);

            await _navigationService.NavigateToAsync <ScanViewModel>();
        }
Exemplo n.º 2
0
        private async Task AddMealToHistoryAndNavigateBack()
        {
            List <Meal> mealList = new List <Meal>();

            mealList.Add(SelectedMeal);

            await _userService.AddMealHistory(SelectedUser.Id, mealList);

            await _navigationService.NavigateToAsync <ScanViewModel>();
        }