public List <IngredientModel> GetIngredientsByType(IngredientType type) { return(IngredientMapper.IngredientsToIngredientModels(_ingredientRepo.GetAll().Where(i => i.Type == type).ToList())); }
public List <IngredientModel> GetAllIngredients() { return(IngredientMapper.IngredientsToIngredientModels(_ingredientRepo.GetAll())); }