Backend and views for tax records.

This commit is contained in:
ivancheahhh
2024-01-03 12:05:56 -07:00
parent 37f3538ab7
commit a6c0afa598
6 changed files with 144 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
namespace CarCareTracker.Models
{
public class TaxRecord
{
public int Id { get; set; }
public int VehicleId { get; set; }
public DateTime Date { get; set; }
public string Description { get; set; }
public decimal Cost { get; set; }
public string Notes { get; set; }
public List<UploadedFiles> Files { get; set; }
}
}

View File

@@ -0,0 +1,14 @@
namespace CarCareTracker.Models
{
public class TaxRecordInput
{
public int Id { get; set; }
public int VehicleId { get; set; }
public string Date { get; set; }
public string Description { get; set; }
public decimal Cost { get; set; }
public string Notes { get; set; }
public List<UploadedFiles> Files { get; set; } = new List<UploadedFiles>();
public TaxRecord ToTaxRecord() { return new TaxRecord { Id = Id, VehicleId = VehicleId, Date = DateTime.Parse(Date), Cost = Cost, Description = Description, Notes = Notes, Files = Files }; }
}
}