public RecipeModel(ILogger <RecipeModel> logger, Code.RecipeBookService recipeBookService) { this.logger = logger; this.recipeBookService = recipeBookService; }
public void OnGet(string tag) { this.CurrentTagName = string.IsNullOrWhiteSpace(tag) ? null: tag; this.Book = RecipeBookService.GetRecipeBook(); this.VisibleRecipes = this.Book.GetRecipesWithTag(this.CurrentTagName); }