public IngredientViewModel(IIngredientBaseRepository ingredientRepository, IIngredientService ingredientService)
 {
     _ingredientRepository = ingredientRepository;
     _ingredientService    = ingredientService;
     Ingredients           = new ObservableCollection <IngredientBase>(ingredientRepository.Find(x => !(x is Ingredient)).GetAwaiter().GetResult());
 }
Пример #2
0
 private IEnumerable <IngredientBase> GetIngredients()
 {
     return(ingredientBaseRepository.Find(x => true).GetAwaiter().GetResult());
 }