25 lines
611 B
C#
25 lines
611 B
C#
using CarShowroomContracts.AbstractModels;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace CarShowroomContracts.Dtos
|
|
{
|
|
public class CarDto : ICar
|
|
{
|
|
public int Id { get; set; }
|
|
public string Color { get; set; }
|
|
public DateTime RealiseDate { get; set; }
|
|
public int ModelId { get; set; }
|
|
public CarDto(ICar model)
|
|
{
|
|
Id = model.Id;
|
|
Color = model.Color;
|
|
RealiseDate = model.RealiseDate;
|
|
ModelId = model.ModelId;
|
|
}
|
|
}
|
|
}
|