using Recepie.Models; namespace Recepie.ViewModels { public class RecipeIndexViewModel { public List Recipes { get; set; } = new List(); public string SearchTerm { get; set; } = string.Empty; public string IncludeIngredients { get; set; } = string.Empty; public string ExcludeIngredients { get; set; } = string.Empty; public string SelectedCategory { get; set; } = string.Empty; public List Categories { get; set; } = new List(); public int TotalRecipes => Recipes.Count; public bool HasFilters => !string.IsNullOrEmpty(SearchTerm) || !string.IsNullOrEmpty(IncludeIngredients) || !string.IsNullOrEmpty(ExcludeIngredients) || !string.IsNullOrEmpty(SelectedCategory); } }