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