private void OnDeleteCommandExecute() { OrderedDishes.Remove(SelectedOrderedDish); TotalSum = _sumCalculator.GetCurrentOrderedSum(); }
private void OnBackCommandExecute() { OrderedDishes.Remove(_bonusDish); _rootViewModel.ChangePage(new ClientMenuViewModel(_user, _reservation, OrderedDishes)); }