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());
 }