39 lines
1.1 KiB
C#
39 lines
1.1 KiB
C#
using AyCode.Interfaces.Entities;
|
|
using AyCode.Interfaces.TimeStampInfo;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace TIAMWebApp.Shared.Application.Models
|
|
{
|
|
public class CarModel : IEntityGuid, ITimeStampInfo
|
|
{
|
|
public Guid Id { get; set; }
|
|
public string Make { get; set; }
|
|
public string Type { get; set; }
|
|
public string Color { get; set; }
|
|
public string Year { get; set; }
|
|
|
|
public string LicensePlate { get; set; }
|
|
|
|
public DateTime Created { get; set; }
|
|
public DateTime Modified { get; set; }
|
|
|
|
public CarModel() { }
|
|
public CarModel(string make, string type, string color, string year, string licensePlate) : this(Guid.NewGuid(), make, type, color, year, licensePlate)
|
|
{ }
|
|
public CarModel(Guid id, string make, string type, string color, string year, string licensePlate)
|
|
{
|
|
Id = id;
|
|
Make = make;
|
|
Type = type;
|
|
Color = color;
|
|
Year = year;
|
|
LicensePlate = licensePlate;
|
|
}
|
|
|
|
}
|
|
}
|