namespace CarCareTracker.Models { public class CollisionRecordInput { public int Id { get; set; } public int VehicleId { get; set; } public List ReminderRecordId { get; set; } = new List(); public string Date { get; set; } = DateTime.Now.ToShortDateString(); public int Mileage { get; set; } public string Description { get; set; } public decimal Cost { get; set; } public string Notes { get; set; } public List Files { get; set; } = new List(); public List Supplies { get; set; } = new List(); public List Tags { get; set; } = new List(); public List ExtraFields { get; set; } = new List(); public List RequisitionHistory { get; set; } = new List(); public bool CopySuppliesAttachment { get; set; } = false; public CollisionRecord ToCollisionRecord() { return new CollisionRecord { Id = Id, VehicleId = VehicleId, Date = DateTime.Parse(Date), Cost = Cost, Mileage = Mileage, Description = Description, Notes = Notes, Files = Files, Tags = Tags, ExtraFields = ExtraFields, RequisitionHistory = RequisitionHistory }; } } }