@model Recepie.ViewModels.RecipeIndexViewModel @{ ViewData["Title"] = "Recipe Search"; }
Search Recipes
Comma-separated list
Comma-separated list
@if (!string.IsNullOrEmpty(Model.SearchTerm) || !string.IsNullOrEmpty(Model.IncludeIngredients) || !string.IsNullOrEmpty(Model.ExcludeIngredients)) { Clear All Filters }
Results

Found @Model.Recipes.Count recipes

@if (Model.Recipes.Any()) {
@foreach (var recipe in Model.Recipes) {
@* Images disabled on index for performance - only show on details page *@
@recipe.Title

@recipe.Description

@if (!string.IsNullOrEmpty(recipe.Difficulty)) {
@recipe.Difficulty
} @if (!string.IsNullOrEmpty(recipe.Time)) {
@recipe.Time
} @if (!string.IsNullOrEmpty(recipe.Url)) { }
}
} else {
@if (!string.IsNullOrEmpty(Model.SearchTerm)) { No recipes found matching your search criteria. } else { No recipes found in the database. }
}
@section Scripts { }