SUBD_PIbd-23_ZakharovRA/CarShowroom/CarShowroomDataModels/Dtos/CarDto.cs
2024-05-05 22:02:53 +04:00

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