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 bool IsSaled { get; set; } public CarDto(ICar model) { Id = model.Id; Color = model.Color; ReleaseDate = model.ReleaseDate; ModelId = model.ModelId; IsSaled = model.IsSaled; } } }