Exemplo n.º 1
0
 public Recipe FindRecipeByName(string recipeName)
 {
     return(Recipes.Find(x => x.Name.ToLower() == recipeName.ToLower()));
 }
Exemplo n.º 2
0
 public void DeleteRecipe(Recipe recipe)
 {
     Recipes.Remove(recipe);
 }
Exemplo n.º 3
0
 public List <Recipe> FindRecipesByCategory(Category category)
 {
     return(Recipes.FindAll(x => x.Categories.Contains(category)));
 }