Introduce IFavoritable and adopt across Recipe and view models

This commit is contained in:
Francesco Lorenzo D'Amico
2026-03-02 15:59:48 +01:00
parent de904e0a28
commit cac83e38a8
4 changed files with 36 additions and 1 deletions
@@ -0,0 +1,17 @@
namespace Francesco.Recipes.World.Models
{
public class RecipeCardViewModel : IFavoritable
{
public Guid Id { get; set; }
public string Name { get; set; } = string.Empty;
public TimeSpan CookingTime { get; set; }
public bool IsFavorite { get; set; }
public byte[]? ImageData { get; set; }
public string? MimeType { get; set; }
}
}