AutoCatAvalonia/AutoCatCore/Model/VehicleAd.cs

25 lines
581 B
C#

using System.ComponentModel.DataAnnotations;
namespace AutoCatCore.Model
{
public class VehicleAd
{
public int Id { get; set; }
[MaxLength(200)]
public string? Url { get; set; }
[MaxLength(50)]
public string? Price { get; set; }
[MaxLength(50)]
public double? Date { get; set; }
[MaxLength(50)]
public string? Mileage { get; set; }
[MaxLength(100)]
public string? Region { get; set; }
[MaxLength(100)]
public string? City { get; set; }
[MaxLength(500)]
public string? AdDescription { get; set; }
public List<string>? Photos { get; set; }
}
}