Add clanker code

This commit is contained in:
2026-02-17 15:33:05 +01:00
parent ced3cbfe6e
commit 9874f78329
24 changed files with 1884 additions and 31 deletions

View File

@@ -2,6 +2,7 @@
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.Json.Serialization;
using System.Threading.Tasks;
namespace dealer
@@ -9,11 +10,26 @@ namespace dealer
public class Vehicle
{
public string? Spz { get; set; }
public string? Znacka { get; set; }
public string? Model { get; set; }
public string? Barva { get; set; }
public int? RokVyroby { get; set; }
public string? Palivo { get; set; }
public int? NajeteKm { get; set; }
public decimal? Cena { get; set; }
public string? Fotografie { get; set; }
public Guid? FotografieId { get; set; }
[JsonIgnore]
public Image? Fotografie { get; set; }
public Guid? VlastnikId { get; set; }
[JsonIgnore]
public Owner? Vlastnik { get; set; }
public string ZnackaModel => !string.IsNullOrEmpty(Znacka) && !string.IsNullOrEmpty(Model)
? $"{Znacka} {Model}"
: Model ?? Znacka ?? "Nezadano";
}
}