diff --git a/Controllers/HomeController.cs b/Controllers/HomeController.cs index 8075ae4..a30c10e 100644 --- a/Controllers/HomeController.cs +++ b/Controllers/HomeController.cs @@ -127,6 +127,7 @@ namespace MotoVaultPro.Controllers Make = x.Make, Model = x.Model, LicensePlate = x.LicensePlate, + VinNumber = x.VinNumber, SoldDate = x.SoldDate, IsElectric = x.IsElectric, IsDiesel = x.IsDiesel, diff --git a/Models/Vehicle.cs b/Models/Vehicle.cs index d6576a3..a647d4b 100644 --- a/Models/Vehicle.cs +++ b/Models/Vehicle.cs @@ -10,6 +10,7 @@ namespace MotoVaultPro.Models public string Make { get; set; } public string Model { get; set; } public string LicensePlate { get; set; } + public string VinNumber { get; set; } [JsonConverter(typeof(FromDateOptional))] public string PurchaseDate { get; set; } [JsonConverter(typeof(FromDateOptional))] diff --git a/Models/VehicleViewModel.cs b/Models/VehicleViewModel.cs index 20c4f77..13b2a39 100644 --- a/Models/VehicleViewModel.cs +++ b/Models/VehicleViewModel.cs @@ -8,6 +8,7 @@ public string Make { get; set; } public string Model { get; set; } public string LicensePlate { get; set; } + public string VinNumber { get; set; } public string SoldDate { get; set; } public bool IsElectric { get; set; } = false; public bool IsDiesel { get; set; } = false; diff --git a/Views/Vehicle/_VehicleModal.cshtml b/Views/Vehicle/_VehicleModal.cshtml index 42d9b04..b2d5b1e 100644 --- a/Views/Vehicle/_VehicleModal.cshtml +++ b/Views/Vehicle/_VehicleModal.cshtml @@ -36,6 +36,8 @@ + + @await Html.PartialAsync("_ExtraField", Model.ExtraFields)