This commit is contained in:
2025-10-27 17:39:18 -04:00
commit 31f723bea4
1579 changed files with 642409 additions and 0 deletions

View File

@@ -0,0 +1,42 @@
using Prefab.Web.Client.Models.Shared;
namespace Prefab.Web.Client.ViewModels.Catalog;
public sealed class ProductCardModel
{
public Guid Id { get; set; }
public string Title { get; set; } = string.Empty;
public string Url { get; set; } = string.Empty;
public string Slug { get; set; } = string.Empty;
public string? PrimaryImageUrl { get; set; }
public string? SecondaryImageUrl { get; set; }
public string? CategoryName { get; set; }
public string? CategoryUrl { get; set; }
public MoneyModel? FromPrice { get; set; }
public bool IsPriced { get; set; }
public decimal? OldPrice { get; set; }
public bool IsOnSale { get; set; }
public int Rating { get; set; }
public int ReviewCount { get; set; }
public IList<string> Badges { get; set; } = new List<string>();
public string? Sku { get; set; }
public DateTimeOffset LastModifiedOn { get; set; }
public bool HasPrice => IsPriced && FromPrice is not null;
}