Compare commits

...

2 Commits

Author SHA1 Message Date
jozsef.b@aycode.com 41b084ade4 Merge branch 'master' of http://git2.aycode.com/Adam/TourIAm 2024-01-12 20:44:32 +01:00
jozsef.b@aycode.com 35a1b5b0f4 Add DriverModel; Add Car entity; 2024-01-12 20:37:12 +01:00
2 changed files with 50 additions and 0 deletions

View File

@ -0,0 +1,36 @@
using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using AyCode.Interfaces.Entities;
using AyCode.Interfaces.TimeStampInfo;
namespace TIAM.Entities.Drivers
{
public enum CarMotorType : byte
{
Gas = 5,
Diesel = 10,
Electric = 15,
}
public class Car : IEntityGuid, ITimeStampModified
{
public Guid Id { get; set; }
public string LicencePlate { get; set; }
public string Color { get; set; }
public string Manufacture{ get; set; }
public string Model { get; set; }
public int YearOfMake { get; set; }
public int SeetNumber { get; set; }
public CarMotorType CarMotorType { get; set; }
public DateTime Modified { get; set; }
public DateTime Created { get; set; }
}
}

View File

@ -0,0 +1,14 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using TIAM.Entities.Drivers;
namespace TIAM.Models.Drivers
{
public class DriverModel
{
public List<Car> Cars { get; set; }
}
}