SUBD_PIbd-23_ZakharovRA/CarShowroom/CarShowroomDataModels/Dtos/CarDto.cs
2024-05-03 10:27:07 +04:00

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;
}
}
}