예제 #1
0
        private IEnumerable <RecipeIngredient> GetRecipeIngredientsByName(string recipeName)
        {
            var query = from RecipeIngredient in RecipeRepo.AllRecipeIngredients()
                        where RecipeIngredient.Recipe_Name == recipeName
                        select RecipeIngredient;

            return(query.ToList <RecipeIngredient>());
        }