public DiscountViewModel() { Dishes.Clear(); Dishes.AddItems(_unitOfWork.Dishes.GetAll()); ApplyAction = new Command(OnApplyActionExecute, OnApplyActionCanExecute); }
private void RefreshDishesCollection() { Dishes.Clear(); Dishes.AddItems(_unitOfWork.Dishes.GetAll()); new ActionsHelper().CalculateDiscountsExisting(Dishes); }