16 lines
665 B
C#
16 lines
665 B
C#
namespace CarCareTracker.Models
|
|
{
|
|
public class ServiceRecordInput
|
|
{
|
|
public int Id { get; set; }
|
|
public int VehicleId { get; set; }
|
|
public string Date { get; set; }
|
|
public int Mileage { get; set; }
|
|
public string Description { get; set; }
|
|
public decimal Cost { get; set; }
|
|
public string Notes { get; set; }
|
|
public List<string> Files { get; set; } = new List<string>();
|
|
public ServiceRecord ToServiceRecord() { return new ServiceRecord { Id = Id, VehicleId = VehicleId, Date = DateTime.Parse(Date), Cost = Cost, Mileage = Mileage, Description = Description, Notes = Notes }; }
|
|
}
|
|
}
|