SUBD_PIbd-23_ZakharovRA/CarShowroom/CarShowroomDatabaseStorage/Entities/Car.cs

25 lines
602 B
C#

using CarShowroomContracts.AbstractModels;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace CarShowroomDatabaseStorage.Entities
{
public class Car : ICar
{
public int Id { get; set; }
public string Color { get; set; }
public DateTime RealiseDate { get; set; }
public int ModelId { get; set; }
public Car(ICar car)
{
Id = car.Id;
Color = car.Color;
RealiseDate = DateTime.Now;
ModelId = car.ModelId;
}
}
}