コード例 #1
0
 public RecipeModel(ILogger <RecipeModel> logger, Code.RecipeBookService recipeBookService)
 {
     this.logger            = logger;
     this.recipeBookService = recipeBookService;
 }
コード例 #2
0
 public void OnGet(string tag)
 {
     this.CurrentTagName = string.IsNullOrWhiteSpace(tag) ? null: tag;
     this.Book           = RecipeBookService.GetRecipeBook();
     this.VisibleRecipes = this.Book.GetRecipesWithTag(this.CurrentTagName);
 }