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