コード例 #1
0
 public Recipe FindRecipe(string name)
 {
     try
     {
         return(recipeDataProvider.FindRecipeByName(name, connection.Value));
     }
     catch (Exception exception)
     {
         throw new RecipeNotFoundDataException(name, exception);
     }
 }
コード例 #2
0
 public Recipe FindRecipe(string name)
 {
     return(recipeDataProvider.FindRecipeByName(name, this));
 }