@if (IsNew) { New } else {
}
@if (!string.IsNullOrWhiteSpace(BookImageUrl)) { @Title } else {
@Category.ToUpper()
EDITION
}
@Title by @Author
R @Price.ToString("N0")
@code { [Parameter] public long Id { get; set; } [Parameter] public string Title { get; set; } = string.Empty; [Parameter] public string Author { get; set; } = string.Empty; [Parameter] public decimal Price { get; set; } [Parameter] public string Category { get; set; } = string.Empty; [Parameter] public bool IsNew { get; set; } [Parameter] public string BookImageUrl { get; set; } = string.Empty; [Parameter] public EventCallback OnCardClick { get; set; } }